diff options
author | Debian Python Modules Team <python-modules-team@lists.alioth.debian.org> | 2018-07-21 13:30:51 +0200 |
---|---|---|
committer | Andrej Shadura <andrewsh@debian.org> | 2018-07-21 13:30:51 +0200 |
commit | 7c4aca6e5c5c3b8606f2be99162b94632d063ac1 (patch) | |
tree | 9ba574bd1d45865294c740bd2fcf1a06c486e0c3 | |
parent | b60f858616cc10c4ccacd4dfc3c6efda885d9e45 (diff) |
fix-ssh-tunnel-auth
===================================================================
Gbp-Pq: Name fix-ssh-tunnel-auth.patch
-rw-r--r-- | Xlib/support/unix_connect.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Xlib/support/unix_connect.py b/Xlib/support/unix_connect.py index 25a8f3a..2b25bc9 100644 --- a/Xlib/support/unix_connect.py +++ b/Xlib/support/unix_connect.py @@ -186,6 +186,14 @@ def old_get_auth(sock, dname, host, dno): except os.error: pass + if not auth_data and host=='localhost': + # 127.0.0.1 counts as FamilyLocal, not FamilyInternet + # See Xtransutil.c:ConvertAddress. + # There might be more ways to spell 127.0.0.1 but + # 'localhost', yet this code fixes a the case of + # OpenSSH tunneling X. + return get_auth('unix:%d' % dno, 'unix', dno) + return auth_name, auth_data get_auth = new_get_auth |