Renamed --localDomain to --domain
This commit is contained in:
1 parent
cc4ba53d1b
commit
6fd90d45a1
1 file changed
+4
-4
+4
-4
@@ -21,7 +21,7 @@ func main() {
|
|||||||
justVersion bool
|
justVersion bool
|
||||||
ifaceName string
|
ifaceName string
|
||||||
apiPath string
|
apiPath string
|
||||||
localDomain string
|
domain string
|
||||||
dnsPort int
|
dnsPort int
|
||||||
httpPort int
|
httpPort int
|
||||||
wait int
|
wait int
|
||||||
@@ -36,7 +36,7 @@ func main() {
|
|||||||
flag.BoolVar(&justVersion, "version", false, "print version and exit")
|
flag.BoolVar(&justVersion, "version", false, "print version and exit")
|
||||||
flag.StringVar(&ifaceName, "iface", "", "name of interface to use for multicast")
|
flag.StringVar(&ifaceName, "iface", "", "name of interface to use for multicast")
|
||||||
flag.StringVar(&apiPath, "api", "unix:///var/run/docker.sock", "path to Docker API socket")
|
flag.StringVar(&apiPath, "api", "unix:///var/run/docker.sock", "path to Docker API socket")
|
||||||
flag.StringVar(&localDomain, "localDomain", weavedns.DefaultLocalDomain, "local domain (ie, 'weave.local.')")
|
flag.StringVar(&domain, "domain", weavedns.DefaultLocalDomain, "local domain (ie, 'weave.local.')")
|
||||||
flag.IntVar(&wait, "wait", 0, "number of seconds to wait for interface to be created and come up")
|
flag.IntVar(&wait, "wait", 0, "number of seconds to wait for interface to be created and come up")
|
||||||
flag.IntVar(&dnsPort, "dnsport", weavedns.DefaultServerPort, "port to listen to DNS requests")
|
flag.IntVar(&dnsPort, "dnsport", weavedns.DefaultServerPort, "port to listen to DNS requests")
|
||||||
flag.IntVar(&httpPort, "httpport", 6785, "port to listen to HTTP requests")
|
flag.IntVar(&httpPort, "httpport", 6785, "port to listen to HTTP requests")
|
||||||
@@ -79,7 +79,7 @@ func main() {
|
|||||||
srvConfig := weavedns.DNSServerConfig{
|
srvConfig := weavedns.DNSServerConfig{
|
||||||
Port: dnsPort,
|
Port: dnsPort,
|
||||||
CacheLen: cacheLen,
|
CacheLen: cacheLen,
|
||||||
LocalDomain: localDomain,
|
LocalDomain: domain,
|
||||||
Timeout: timeout,
|
Timeout: timeout,
|
||||||
UDPBufLen: udpbuf,
|
UDPBufLen: udpbuf,
|
||||||
}
|
}
|
||||||
@@ -93,7 +93,7 @@ func main() {
|
|||||||
Debug.Printf("Starting the signals handler")
|
Debug.Printf("Starting the signals handler")
|
||||||
go handleSignals(srv)
|
go handleSignals(srv)
|
||||||
|
|
||||||
go weavedns.ListenHTTP(version, srv, localDomain, zone, httpPort)
|
go weavedns.ListenHTTP(version, srv, domain, zone, httpPort)
|
||||||
err = srv.Start()
|
err = srv.Start()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
Error.Fatal("Failed to start the WeaveDNS server", err)
|
Error.Fatal("Failed to start the WeaveDNS server", err)
|
||||||
|
|||||||
Reference in new issue
Block a user