Skip to content

Commit 0002325

Browse files
authored
Merge pull request #34 from openziti/fix-sockaddr-port-type
port field should be unsigned
2 parents 9290e16 + bee106f commit 0002325

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/openziti/zitilib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class SockAddrIn(ctypes.Structure):
4848
"""
4949
_fields_ = [
5050
('_family', ctypes.c_uint8 * 2),
51-
('_port', ctypes.c_int16),
51+
('_port', ctypes.c_uint16),
5252
('_addr', ctypes.c_uint8 * 4)
5353
]
5454

0 commit comments

Comments
 (0)