Skip to content

Commit 9453b0a

Browse files
author
John Allsup
committed
Use AF_UNSPEC as default for family instead of 0
1 parent f9f0f76 commit 9453b0a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pythonosc/udp_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
class UDPClient(object):
1919
"""OSC client to send :class:`OscMessage` or :class:`OscBundle` via UDP"""
2020

21-
def __init__(self, address: str, port: int, allow_broadcast: bool = False, family: socket.AddressFamily = 0) -> None:
21+
def __init__(self, address: str, port: int, allow_broadcast: bool = False, family: socket.AddressFamily = socket.AF_UNSPEC) -> None:
2222
"""Initialize client
2323
2424
As this is UDP it will not actually make any attempt to connect to the

0 commit comments

Comments
 (0)