Skip to content

Commit

Permalink
avoid parsing errors when socket options contain dict values for 'auth'
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Mar 4, 2024
1 parent c9a9ff9 commit ffd8fa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpra/server/server_core.py
Expand Up @@ -1963,7 +1963,7 @@ def make_authenticators(self, socktype:str, remote, conn) -> Tuple[Any]:
#per socket authentication option:
#ie: --bind-tcp=0.0.0.0:10000,auth=hosts,auth=file:filename=pass.txt:foo=bar
# -> sock_auth = ["hosts", "file:filename=pass.txt:foo=bar"]
if not isinstance(sock_auth, list):
if not isinstance(sock_auth, (list, dict)):
sock_auth = sock_auth.split(",")
auth_classes = self.get_auth_modules(conn.socktype, sock_auth)
else:
Expand Down

0 comments on commit ffd8fa5

Please sign in to comment.