main: fix localhost proxy bypass

This commit is contained in:
selsta committed 2026-09-14 18:08:46 +02:00
1 parent 7691273c63
commit 7ac859dca3
1 file changed
+1 -1
+1 -1
View File
@@ -1545,7 +1545,7 @@ ApplicationWindow {
} else {
const remoteAddress = remoteNodesModel.currentRemoteNode().address;
// skip proxy when using localhost remote node
if (remoteAddress.startsWith("127.0.0.1:") || remoteAddress.startsWith("localhost:")) {
if (/^(127\.0\.0\.1|localhost):[0-9]+$/i.test(remoteAddress)) {
return "";
} else {
return getProxyAddress();