mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-02-03 22:18:39 +00: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
@@ -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