stop weavedns from complaining when a container has no docker ip

e.g. when it was started with --net=none

weavedns wasn't actually using the docker-assigned ip for anything, so
this change is a simple matter of eradicating it from the code.
This commit is contained in:
Matthias Radestock committed 2014-11-27 16:13:06 +00:00
1 parent 65c77df279
commit 24702e3a7a
5 files changed
+14 -27

No files matched your search

+1 -2
View File
@@ -32,9 +32,8 @@ func sendQuery(name string, querytype uint16) error {
func TestServerSimpleQuery(t *testing.T) {
log.Println("TestServerSimpleQuery starting")
var zone = new(ZoneDb)
dockerIP := net.ParseIP("9.8.7.6")
weaveIP, _, _ := net.ParseCIDR(testAddr1)
zone.AddRecord(containerID, "test.weave.", dockerIP, weaveIP)
zone.AddRecord(containerID, "test.weave.", weaveIP)
mdnsServer, err := NewMDNSServer(zone)
assertNoErr(t, err)