Update CHANLIMIT on all instances when set via API

This commit is contained in:
Mark Veidemanis 2022-08-13 22:36:52 +01:00
parent 60f7a84383
commit ab9b0a1c9f
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 3 additions and 0 deletions

View File

@ -256,6 +256,9 @@ class API(object):
return dumps({"success": False, "reason": "invalid chanlimit: not a number."})
else:
chanlimit = int(chanlimit)
online_relays = helpers.get_active_relays(net)
for inst in online_relays:
inst.chanlimit = chanlimit
elif item == "security":
security = data[item][0]
if security not in ["ssl", "plain"]: