diff --git a/aiosocks/helpers.py b/aiosocks/helpers.py index abed611..730a865 100644 --- a/aiosocks/helpers.py +++ b/aiosocks/helpers.py @@ -25,7 +25,7 @@ class Socks5Auth(namedtuple('Socks5Auth', ['login', 'password', 'encoding'])): class SocksAddr(namedtuple('SocksServer', ['host', 'port'])): - def __new__(cls, host, port): + def __new__(cls, host, port=1080): if host is None: raise ValueError('None is not allowed as host value')