mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-02-03 22:18:39 +00:00
cmd/ctrld: only ignore listener.0 setup when setup router
This commit is contained in:
committed by
Cuong Manh Le
parent
521f06dcc1
commit
45895067c6
@@ -398,7 +398,7 @@ func needLocalIPv6Listener() bool {
|
||||
}
|
||||
|
||||
func dnsListenAddress(lcNum string, lc *ctrld.ListenerConfig) string {
|
||||
if addr := router.ListenAddress(); addr != "" && lcNum == "0" {
|
||||
if addr := router.ListenAddress(); setupRouter && addr != "" && lcNum == "0" {
|
||||
return addr
|
||||
}
|
||||
return net.JoinHostPort(lc.IP, strconv.Itoa(lc.Port))
|
||||
|
||||
Reference in New Issue
Block a user