We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f185458 commit b61f1c8Copy full SHA for b61f1c8
test/case/infix_firewall/wan-dmz-lan/test.py
@@ -181,7 +181,8 @@ def debug(msg):
181
assert wan_zone["action"] == "drop"
182
assert wan_if in wan_zone["interface"]
183
assert len(wan_zone["port-forward"]) == 1
184
- pf = wan_zone["port-forward"][0]
+ # Access port-forward by iterating over the keyed list
185
+ pf = next(iter(wan_zone["port-forward"]))
186
assert pf["lower"] == 8080
187
assert pf["to"]["addr"] == DMZ_SERVER_IP
188
assert pf["to"]["port"] == 80
0 commit comments