define weavedns http port as a constant

This commit is contained in:
Paul Bellamy committed 2015-06-11 10:27:35 +01:00
1 parent a424bfe715
commit 96bda1639e
3 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -109,7 +109,7 @@ func (i *createContainerInterceptor) getDNSDomain() (domain string) {
return
}
url := fmt.Sprintf("http://%s:6785/domain", dnsContainer.NetworkSettings.IPAddress)
url := fmt.Sprintf("http://%s:%d/domain", dnsContainer.NetworkSettings.IPAddress, nameserver.DefaultHTTPPort)
resp, err := http.Get(url)
if err != nil || resp.StatusCode != http.StatusOK {
return