1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-22 13:34:04 +03:00

Fixed installer permissions fod UDSClient

This commit is contained in:
Adolfo Gómez García 2023-05-11 16:35:34 +02:00
parent 8891da5987
commit 0c2ee7906b
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23
2 changed files with 1 additions and 15 deletions

View File

@ -9,6 +9,7 @@ fi
echo "Installing UDSClient Portable..."
cp UDSClient-0.0.0-x86_64.AppImage /usr/bin
chmod 755 /usr/bin/UDSClient-0.0.0-x86_64.AppImage
cp UDSClient.desktop /usr/share/applications
update-desktop-database

View File

@ -68,7 +68,6 @@ class ForwardServer(socketserver.ThreadingTCPServer):
keep_listening: bool
current_connections: int
status: int
initial_payload: PayLoadType
def __init__(
self,
@ -78,7 +77,6 @@ class ForwardServer(socketserver.ThreadingTCPServer):
local_port: int = 0,
check_certificate: bool = True,
keep_listening: bool = False,
initial_payload: PayLoadType = None,
) -> None:
local_port = local_port or random.randrange(33000, 53000)
@ -94,8 +92,6 @@ class ForwardServer(socketserver.ThreadingTCPServer):
self.stop_flag = threading.Event() # False initial
self.current_connections = 0
self.initial_payload = initial_payload
self.status = TUNNEL_LISTENING
self.can_stop = False
@ -200,16 +196,6 @@ class Handler(socketserver.BaseRequestHandler):
# All is fine, now we can tunnel data
# If we have a payload, send it
if self.server.initial_payload:
to_send, to_receive = self.server.initial_payload
if to_send: # To send
ssl_socket.sendall(to_send)
if to_receive:
temp = ssl_socket.recv(len(to_receive))
if temp != to_receive:
raise Exception(f'Invalid response: {temp!s} != {to_receive!s}')
self.process(remote=ssl_socket)
except Exception as e:
logger.error(f'Error connecting to {self.server.remote!s}: {e!s}')
@ -271,7 +257,6 @@ def forward(
local_port=local_port,
check_certificate=check_certificate,
keep_listening=keep_listening,
initial_payload=initial_payload,
)
# Starts a new thread
threading.Thread(target=_run, args=(fs,)).start()