fix bug: lb is not started/restarted when loading op conf

This commit is contained in:
mantaohuang 2020-08-22 14:38:15 -04:00
parent f4e721785f
commit 62fc1aee5c

View File

@ -82,6 +82,10 @@ class OManager:
"weight": 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
def new_op_old(self, cfg_fp, name=None, additional_cfg={}):