Browse Source

Added default SOCKS server port value

main
nibrag 8 years ago
parent
commit
9100785863
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      aiosocks/helpers.py

+ 1
- 1
aiosocks/helpers.py View File

@@ -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')



Loading…
Cancel
Save