Compare commits
2 commits
7c4ad5104c
...
ed2d89e5ec
Author | SHA1 | Date | |
---|---|---|---|
![]() |
ed2d89e5ec | ||
![]() |
ca5d03676a |
1 changed files with 4 additions and 0 deletions
4
main.py
4
main.py
|
@ -69,6 +69,8 @@ def apply_port_changes():
|
|||
label = "Allocation " + str(alloc["id"]) + " for " + node_internal_name
|
||||
if alloc["id"] in allocation_server_lookup.keys():
|
||||
svr = allocation_server_lookup[alloc["id"]]
|
||||
if "pf_exclude" in svr.description:
|
||||
continue
|
||||
label = svr["name"] + "(" + svr["identifier"] + ") allocation"
|
||||
|
||||
rules.append(create_rule(label, node_internal_ip, alloc["port"]))
|
||||
|
@ -101,4 +103,6 @@ if __name__ == '__main__':
|
|||
|
||||
port = int(cfg["app"]["port"])
|
||||
|
||||
print("Applying initial port forwarding")
|
||||
apply_port_changes()
|
||||
app.run(host="0.0.0.0", port=port)
|
||||
|
|
Loading…
Reference in a new issue