mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-08-10 13:20:33 +02:00
cmd/ctrld: only overwrite listener if not defined in cd mode
This commit is contained in:
+1
-1
@@ -777,7 +777,7 @@ func processCDFlags() {
|
||||
}
|
||||
switch {
|
||||
case setupRouter:
|
||||
if lc := cfg.Listener["0"]; lc != nil {
|
||||
if lc := cfg.Listener["0"]; lc != nil && lc.IP == "" {
|
||||
lc.IP = router.ListenIP()
|
||||
lc.Port = router.ListenPort()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user