Commit 8b7e4d88 authored by Robin Obůrka's avatar Robin Obůrka

network: Make test logic more bulletproof

parent 963f8a5d
......@@ -48,7 +48,7 @@ class Resource:
raise SockConfigError("Port number is out of range (0-65535)")
# This is a little bit higher logic
if address == "*" and direction == "connect":
if address == "*" and direction != "bind":
raise SockConfigError("On '*' is only bind operation permitted")
self.name = name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment