mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-21 16:05:02 +02:00
Assume localhost is always local
Required by the spec
This commit is contained in:
@@ -508,7 +508,7 @@ class Window:
|
|||||||
except Exception:
|
except Exception:
|
||||||
hostname = ''
|
hostname = ''
|
||||||
remote_hostname = purl.netloc.partition(':')[0]
|
remote_hostname = purl.netloc.partition(':')[0]
|
||||||
if remote_hostname and remote_hostname != hostname:
|
if remote_hostname and remote_hostname != hostname and remote_hostname != 'localhost':
|
||||||
self.handle_remote_file(purl.netloc, unquote(purl.path))
|
self.handle_remote_file(purl.netloc, unquote(purl.path))
|
||||||
return
|
return
|
||||||
if self.opts.allow_hyperlinks & 0b10:
|
if self.opts.allow_hyperlinks & 0b10:
|
||||||
|
|||||||
Reference in New Issue
Block a user