diff options
Diffstat (limited to 'libmproxy/protocol2/socks.py')
-rw-r--r-- | libmproxy/protocol2/socks.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libmproxy/protocol2/socks.py b/libmproxy/protocol2/socks.py index 9ca30bb4..7835b1a4 100644 --- a/libmproxy/protocol2/socks.py +++ b/libmproxy/protocol2/socks.py @@ -2,6 +2,7 @@ from __future__ import (absolute_import, print_function, division, unicode_liter from ..proxy import ProxyError, Socks5ProxyMode, ProxyError2 from .layer import Layer, ServerConnectionMixin +from .auto import AutoLayer class Socks5IncomingLayer(Layer, ServerConnectionMixin): @@ -15,12 +16,7 @@ class Socks5IncomingLayer(Layer, ServerConnectionMixin): self._set_address(address) - if address[1] == 443: - layer = AutoLayer(self) - else: - layer = AutoLayer(self) + layer = AutoLayer(self) for message in layer(): if not self._handle_server_message(message): yield message - -from .auto import AutoLayer |