zettio/weave#366 - keep the DNSServerConfig inmutable

This commit is contained in:
Alvaro Saurin committed 2015-02-27 12:22:08 +01:00
1 parent 0bc3e333f8
commit 007873a402
3 files changed
+46 -45

No files matched your search

+1 -3
View File
@@ -70,8 +70,6 @@ func main() {
}
srvConfig := weavedns.DNSServerConfig{
Zone: zone,
Iface: iface,
Port: dnsPort,
LocalDomain: localDomain,
}
@@ -86,7 +84,7 @@ func main() {
}
go weavedns.ListenHttp(localDomain, zone, httpPort)
srv, err := weavedns.NewDNSServer(srvConfig)
srv, err := weavedns.NewDNSServer(srvConfig, zone, iface)
if err != nil {
Error.Fatal("Failed to initialize the WeaveDNS server", err)
}