Error handling

- proxy connections didn't init fullyEstablished
This commit is contained in:
Peter Šurda 2017-11-19 13:48:43 +01:00
parent fdfbb77ed2
commit e558b1fb72
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -64,6 +64,7 @@ class Proxy(AdvancedDispatcher):
AdvancedDispatcher.__init__(self)
self.destination = address
self.isOutbound = True
self.fullyEstablished = False
self.create_socket(socket.AF_INET, socket.SOCK_STREAM)
self.connect(self.proxy)