From 58f78afc2e504dfd5fe55fe6f38370d8e9256a2b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 15 Sep 2020 16:19:27 +0530 Subject: [PATCH] Assume localhost is always local Required by the spec --- kitty/window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/window.py b/kitty/window.py index d553a79dd..a7b88b651 100644 --- a/kitty/window.py +++ b/kitty/window.py @@ -508,7 +508,7 @@ class Window: except Exception: hostname = '' 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)) return if self.opts.allow_hyperlinks & 0b10: