From 9100785863238a61e543e15c2346d082c452b3df Mon Sep 17 00:00:00 2001 From: nibrag Date: Sat, 7 May 2016 00:49:03 +0300 Subject: [PATCH] Added default SOCKS server port value --- aiosocks/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')