use valid port number in test

Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
This commit is contained in:
Miguel Guarniz 2022-07-29 12:42:37 -04:00 committed by Maximilian Hils
parent 5f93227685
commit 05c8ce150e

View file

@ -54,7 +54,7 @@ def test_parse_specific_modes():
assert ProxyMode.parse("socks5")
assert ProxyMode.parse("dns").resolve_local
assert ProxyMode.parse("dns:reverse:8.8.8.8")
assert ProxyMode.parse("dtls:reverse:127.0.0.1:0")
assert ProxyMode.parse("dtls:reverse:127.0.0.1:8004")
with pytest.raises(ValueError, match="invalid port"):
ProxyMode.parse("regular@invalid-port")