19 lines
767 B
Diff
19 lines
767 B
Diff
Index: python-xlib/Xlib/support/unix_connect.py
|
|
===================================================================
|
|
--- python-xlib.orig/Xlib/support/unix_connect.py 2022-12-30 20:47:39.970961940 -0300
|
|
+++ python-xlib/Xlib/support/unix_connect.py 2022-12-30 20:50:19.204944041 -0300
|
|
@@ -211,6 +211,13 @@
|
|
auth_data = auth
|
|
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
|
|
|