Update CHANLIMIT on all instances when set via API
This commit is contained in:
parent
60f7a84383
commit
ab9b0a1c9f
|
@ -256,6 +256,9 @@ class API(object):
|
||||||
return dumps({"success": False, "reason": "invalid chanlimit: not a number."})
|
return dumps({"success": False, "reason": "invalid chanlimit: not a number."})
|
||||||
else:
|
else:
|
||||||
chanlimit = int(chanlimit)
|
chanlimit = int(chanlimit)
|
||||||
|
online_relays = helpers.get_active_relays(net)
|
||||||
|
for inst in online_relays:
|
||||||
|
inst.chanlimit = chanlimit
|
||||||
elif item == "security":
|
elif item == "security":
|
||||||
security = data[item][0]
|
security = data[item][0]
|
||||||
if security not in ["ssl", "plain"]:
|
if security not in ["ssl", "plain"]:
|
||||||
|
|
Loading…
Reference in New Issue