You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by ne...@apache.org on 2017/04/20 14:30:39 UTC

[1/2] incubator-trafficcontrol git commit: Fix The Monitor host port change bug

Repository: incubator-trafficcontrol
Updated Branches:
  refs/heads/master 14afdb407 -> 8eda1c7f5


Fix The Monitor host port change bug

When the Monitor host port changed(default 80), that the Stat unable to get information from the monitor.

Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/50858c46
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/50858c46
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/50858c46

Branch: refs/heads/master
Commit: 50858c46026019b58ff06061b02fced7a896e57b
Parents: 14afdb4
Author: Weijian <30...@qq.com>
Authored: Wed Apr 5 09:41:48 2017 +0800
Committer: David Neuman <da...@gmail.com>
Committed: Thu Apr 20 08:29:29 2017 -0600

----------------------------------------------------------------------
 traffic_stats/traffic_stats.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/50858c46/traffic_stats/traffic_stats.go
----------------------------------------------------------------------
diff --git a/traffic_stats/traffic_stats.go b/traffic_stats/traffic_stats.go
index 8eede7b..e524711 100644
--- a/traffic_stats/traffic_stats.go
+++ b/traffic_stats/traffic_stats.go
@@ -494,9 +494,9 @@ func getToData(config StartupConfig, init bool, configChan chan RunningConfig) {
 			if runningConfig.HealthUrls[cdnName] == nil {
 				runningConfig.HealthUrls[cdnName] = make(map[string]string)
 			}
-			url := "http://" + server.IPAddress + cacheStatPath
+			url := "http://" + server.IPAddress + ":" + strconv.Itoa(server.TCPPort) + cacheStatPath
 			runningConfig.HealthUrls[cdnName]["CacheStats"] = url
-			url = "http://" + server.IPAddress + dsStatPath
+			url = "http://" + server.IPAddress + ":" + strconv.Itoa(server.TCPPort) + dsStatPath
 			runningConfig.HealthUrls[cdnName]["DsStats"] = url
 		}
 	}


[2/2] incubator-trafficcontrol git commit: This closes #432

Posted by ne...@apache.org.
This closes #432


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/8eda1c7f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/8eda1c7f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/8eda1c7f

Branch: refs/heads/master
Commit: 8eda1c7f510c1a6504ddf2ef125ba14aaccd523a
Parents: 50858c4
Author: David Neuman <da...@gmail.com>
Authored: Thu Apr 20 08:30:14 2017 -0600
Committer: David Neuman <da...@gmail.com>
Committed: Thu Apr 20 08:30:14 2017 -0600

----------------------------------------------------------------------

----------------------------------------------------------------------