diff options
author | Debian Python Modules Team <python-modules-team@lists.alioth.debian.org> | 2017-11-27 13:10:02 +0000 |
---|---|---|
committer | Andrew Shadura <andrewsh@debian.org> | 2017-11-27 13:10:02 +0000 |
commit | d84434fa993fec9cd6d5d2cb4a44de053be46851 (patch) | |
tree | d0b882ace7b594b5b51661482729a896354760a3 | |
parent | d8d1c20524596ccb4579d65142f82237950ebf42 (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 3b16d5d..7659d94 100644 --- a/Xlib/support/unix_connect.py +++ b/Xlib/support/unix_connect.py @@ -179,6 +179,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 |