Skip to content

Commit 0b020b8

Browse files
committed
Working on RAW socket.
1 parent d064a90 commit 0b020b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pytcp/socket/raw__socket.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ def __init__(
8787
case AddressFamily.INET4:
8888
self._local_ip_address = Ip4Address()
8989
self._remote_ip_address = Ip4Address()
90+
case _:
91+
raise ValueError(
92+
f"Invalid address family: {self._address_family}"
93+
)
9094

9195
self._local_port = int(ip_proto)
9296
self._remote_port = 0

0 commit comments

Comments
 (0)