mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-07-04 01:07:49 +02:00
cmd/ctrld: only overwrite listener if not defined in cd mode
This commit is contained in:
committed by
Cuong Manh Le
parent
1d3f8757bc
commit
78a7c87ecc
+1
-1
@@ -777,7 +777,7 @@ func processCDFlags() {
|
|||||||
}
|
}
|
||||||
switch {
|
switch {
|
||||||
case setupRouter:
|
case setupRouter:
|
||||||
if lc := cfg.Listener["0"]; lc != nil {
|
if lc := cfg.Listener["0"]; lc != nil && lc.IP == "" {
|
||||||
lc.IP = router.ListenIP()
|
lc.IP = router.ListenIP()
|
||||||
lc.Port = router.ListenPort()
|
lc.Port = router.ListenPort()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user