mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-03 19:27:14 +00:00
use valid port number in test
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
This commit is contained in:
parent
5f93227685
commit
05c8ce150e
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue