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:
commit
74ad88d1bc
@ -103,6 +103,7 @@ async def tunnel_proc_async(
|
|||||||
|
|
||||||
def get_socket() -> typing.Optional[socket.socket]:
|
def get_socket() -> typing.Optional[socket.socket]:
|
||||||
try:
|
try:
|
||||||
|
data: bytes = b''
|
||||||
while True:
|
while True:
|
||||||
# Clear back event, for next data
|
# Clear back event, for next data
|
||||||
msg: typing.Optional[
|
msg: typing.Optional[
|
||||||
@ -114,7 +115,7 @@ async def tunnel_proc_async(
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# First, ensure handshake (simple handshake) and command
|
# 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:
|
if data != consts.HANDSHAKE_V1:
|
||||||
raise Exception() # Invalid handshake
|
raise Exception() # Invalid handshake
|
||||||
|
Loading…
Reference in New Issue
Block a user