mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-06-09 00:53:53 +02:00
internal/router: disable native dot on merlin
While at it, also ensure custom config is ignored when running on router, because we need to point to 127.0.0.1:53 (dnsmasq listener).
This commit is contained in:
committed by
Cuong Manh Le
parent
be497a68de
commit
5b6a3a4c6f
@@ -743,6 +743,13 @@ func processCDFlags() {
|
||||
listener.Port = 53
|
||||
}
|
||||
}
|
||||
// On router, we want to keep the listener address point to dnsmasq listener, aka 127.0.0.1:53.
|
||||
if router.Name() != "" {
|
||||
if lc := cfg.Listener["0"]; lc != nil {
|
||||
lc.IP = "127.0.0.1"
|
||||
lc.Port = 53
|
||||
}
|
||||
}
|
||||
} else {
|
||||
cfg = ctrld.Config{}
|
||||
cfg.Network = make(map[string]*ctrld.NetworkConfig)
|
||||
|
||||
Reference in New Issue
Block a user