From 63661713df0310af7ac431cf885216ff57e14c78 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 11 Oct 2018 15:45:55 +1000 Subject: [PATCH] use 127.0.0.1 instead of localhost in local urls --- aqt/webview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/webview.py b/aqt/webview.py index 81d31dffc..472183f07 100644 --- a/aqt/webview.py +++ b/aqt/webview.py @@ -272,7 +272,7 @@ body {{ zoom: {}; {} }} def webBundlePath(self, path): from aqt import mw - return "http://localhost:%d/_anki/%s" % (mw.mediaServer.getPort(), path) + return "http://127.0.0.1:%d/_anki/%s" % (mw.mediaServer.getPort(), path) def bundledScript(self, fname): return '' % self.webBundlePath(fname)