From 8a35b469fa09d44f15b7ef1c4382e298992b4cc3 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 4 Mar 2024 21:18:05 +0700 Subject: [PATCH] avoid errors during authentication we may not have a fully initialized protocol object yet --- xpra/client/base/client_base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xpra/client/base/client_base.py b/xpra/client/base/client_base.py index afa7d46677..ea5823315c 100644 --- a/xpra/client/base/client_base.py +++ b/xpra/client/base/client_base.py @@ -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}")