From ed2d89e5ecdaccdaa68eeacd98529629b9f358ed Mon Sep 17 00:00:00 2001 From: Nick Guy Date: Sun, 2 Mar 2025 14:58:01 +0000 Subject: [PATCH] Add ability to exclude servers from port-forwarding --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index 14e84b1..a5ded1a 100644 --- a/main.py +++ b/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"]))