From: W. Trevor King Date: Wed, 12 Mar 2014 16:58:45 +0000 (-0700) Subject: irkerd: Fix 'self.socket' -> 'socket' typos in _wrap_socket X-Git-Tag: 2.7~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=56d8dbd8e2abe6ea8075aa7396d9c77bef239bc0;p=irker.git irkerd: Fix 'self.socket' -> 'socket' typos in _wrap_socket Respect the 'socket' argument passed in by the caller. Fixes a typo introducted in a82724f (irkerd: Initial SSL/TLS implementation, 2014-03-06). --- diff --git a/irkerd b/irkerd index ea9aa06..e907658 100755 --- a/irkerd +++ b/irkerd @@ -248,7 +248,7 @@ class IRCServerConnection(): kwargs = {} if ssl.HAS_SNI: kwargs['server_hostname'] = target.servername - self.socket = ssl_context.wrap_socket(self.socket, **kwargs) + self.socket = ssl_context.wrap_socket(socket, **kwargs) return self.socket def _check_hostname(self, target):