forked from shaba/openuds
Fixed userService name on ServiceNotReady exception && small fix to comment
This commit is contained in:
parent
10d9279b89
commit
612646bd1c
@ -114,7 +114,7 @@ class ForwardServer(socketserver.ThreadingTCPServer):
|
|||||||
|
|
||||||
rsocket.connect(self.remote)
|
rsocket.connect(self.remote)
|
||||||
|
|
||||||
rsocket.sendall(HANDSHAKE_V1) # No response, just the handshake
|
rsocket.sendall(HANDSHAKE_V1) # No response expected, just the handshake
|
||||||
|
|
||||||
context = ssl.create_default_context()
|
context = ssl.create_default_context()
|
||||||
|
|
||||||
|
@ -107,5 +107,5 @@ class ServiceNotReadyError(ServiceException):
|
|||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
self.code = kwargs.get('code', 0x0000)
|
self.code = kwargs.get('code', 0x0000)
|
||||||
self.userService = kwargs.get('service', None)
|
self.userService = kwargs.get('userService', None)
|
||||||
self.transport = kwargs.get('transport', None)
|
self.transport = kwargs.get('transport', None)
|
||||||
|
Loading…
Reference in New Issue
Block a user