Skip to content

Commit

Permalink
avoid errors during authentication
Browse files Browse the repository at this point in the history
we may not have a fully initialized protocol object yet
  • Loading branch information
totaam committed Mar 4, 2024
1 parent ffd8fa5 commit 8a35b46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xpra/client/base/client_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1034,6 +1034,8 @@ def get_encryption(self) -> str:
if not p:
return ""
conn = p._conn
if not conn:
return ""
#prefer the socket option, fallback to "--encryption=" option:
encryption = conn.options.get("encryption", self.encryption)
cryptolog(f"get_encryption() connection options encryption={encryption!r}")
Expand Down

0 comments on commit 8a35b46

Please sign in to comment.