fix bug: lb is not started/restarted when loading op conf
This commit is contained in:
parent
f4e721785f
commit
62fc1aee5c
@ -82,6 +82,10 @@ class OManager:
|
|||||||
"weight": 1
|
"weight": 1
|
||||||
})
|
})
|
||||||
self.new_idx += 1
|
self.new_idx += 1
|
||||||
|
# reset lb if the new op is started
|
||||||
|
new_op_enabled = ovpn_config.get("enabled", False)
|
||||||
|
if new_op_enabled:
|
||||||
|
self.reset_lb()
|
||||||
return op
|
return op
|
||||||
|
|
||||||
def new_op_old(self, cfg_fp, name=None, additional_cfg={}):
|
def new_op_old(self, cfg_fp, name=None, additional_cfg={}):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user