define weavedns http port as a constant
This commit is contained in:
1 parent
a424bfe715
commit
96bda1639e
3 files changed
+3
-2
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user