X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fsocks.py;h=104807242bd3b0f35e0423faa096540be29d0a45;hb=da30a20a4d8b0ece61c271a5d0f0c6de2817ef5f;hp=a5b27fea7c685208b1315110de90139d4bd6d075;hpb=edaa23f822a1e4a62771422fb598c7bd8ae0a152;p=youtube-dl diff --git a/youtube_dl/socks.py b/youtube_dl/socks.py index a5b27fea7..104807242 100644 --- a/youtube_dl/socks.py +++ b/youtube_dl/socks.py @@ -76,7 +76,7 @@ class Socks4Error(ProxyError): CODES = { 91: 'request rejected or failed', - 92: 'request rejected becasue SOCKS server cannot connect to identd on the client', + 92: 'request rejected because SOCKS server cannot connect to identd on the client', 93: 'request rejected because the client program and identd report different user-ids' } @@ -210,8 +210,6 @@ class sockssocket(socket.socket): if status != SOCKS5_USER_AUTH_SUCCESS: self.close() raise Socks5Error(Socks5Error.ERR_GENERAL_FAILURE) - elif method == Socks5Auth.AUTH_NONE: - pass def _setup_socks5(self, address): destaddr, port = address