1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-25 23:21:41 +03:00

Merge remote-tracking branch 'origin/v3.5'

This commit is contained in:
Adolfo Gómez García 2022-03-21 15:09:29 +01:00
commit 74ad88d1bc

View File

@ -103,6 +103,7 @@ async def tunnel_proc_async(
def get_socket() -> typing.Optional[socket.socket]:
try:
data: bytes = b''
while True:
# Clear back event, for next data
msg: typing.Optional[
@ -114,7 +115,7 @@ async def tunnel_proc_async(
try:
# First, ensure handshake (simple handshake) and command
data: bytes = source.recv(len(consts.HANDSHAKE_V1))
data = source.recv(len(consts.HANDSHAKE_V1))
if data != consts.HANDSHAKE_V1:
raise Exception() # Invalid handshake