惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

爱范儿
爱范儿
MyScale Blog
MyScale Blog
Recent Announcements
Recent Announcements
N
Netflix TechBlog - Medium
GbyAI
GbyAI
Vercel News
Vercel News
The GitHub Blog
The GitHub Blog
阮一峰的网络日志
阮一峰的网络日志
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
V
Visual Studio Blog
Martin Fowler
Martin Fowler
腾讯CDC
大猫的无限游戏
大猫的无限游戏
aimingoo的专栏
aimingoo的专栏
云风的 BLOG
云风的 BLOG
J
Java Code Geeks
WordPress大学
WordPress大学
P
Proofpoint News Feed
雷峰网
雷峰网
酷 壳 – CoolShell
酷 壳 – CoolShell
有赞技术团队
有赞技术团队
人人都是产品经理
人人都是产品经理
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Y
Y Combinator Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix: honor ipv6 no_proxy entries · openclaw/openclaw@e205888
steipete · 2026-05-29 · via Recent Commits to openclaw:main

@@ -36,7 +36,40 @@ function parseProxyTargetUrl(targetUrl: string | URL): URL | undefined {

3636

}

3737

}

383839+

function normalizeProxyHostname(hostname: string): string {

40+

let normalized = hostname.toLowerCase();

41+

if (normalized.startsWith("[") && normalized.endsWith("]")) {

42+

normalized = normalized.slice(1, -1);

43+

}

44+

return normalized.endsWith(".") ? normalized.slice(0, -1) : normalized;

45+

}

46+47+

function parseNoProxyEntry(entry: string): { hostname: string; port: number } {

48+

const bracketed = entry.match(/^\[([^\]]+)\](?::(\d+))?$/);

49+

if (bracketed) {

50+

return {

51+

hostname: normalizeProxyHostname(bracketed[1] ?? ""),

52+

port: bracketed[2] ? Number.parseInt(bracketed[2], 10) : 0,

53+

};

54+

}

55+56+

const firstColon = entry.indexOf(":");

57+

const lastColon = entry.lastIndexOf(":");

58+

if (firstColon > -1 && firstColon === lastColon) {

59+

const portRaw = entry.slice(lastColon + 1);

60+

if (/^\d+$/.test(portRaw)) {

61+

return {

62+

hostname: normalizeProxyHostname(entry.slice(0, lastColon)),

63+

port: Number.parseInt(portRaw, 10),

64+

};

65+

}

66+

}

67+68+

return { hostname: normalizeProxyHostname(entry), port: 0 };

69+

}

70+3971

function shouldProxyHostname(hostname: string, port: number): boolean {

72+

const normalizedHostname = normalizeProxyHostname(hostname);

4073

const noProxy = getProxyEnv("no_proxy").toLowerCase();

4174

if (!noProxy) {

4275

return true;

@@ -50,21 +83,21 @@ function shouldProxyHostname(hostname: string, port: number): boolean {

5083

return true;

5184

}

528553-

const parsedProxy = proxy.match(/^(.+):(\d+)$/);

54-

let proxyHostname = parsedProxy ? parsedProxy[1] : proxy;

55-

const proxyPort = parsedProxy ? Number.parseInt(parsedProxy[2], 10) : 0;

86+

const parsedProxy = parseNoProxyEntry(proxy);

87+

let proxyHostname = parsedProxy.hostname;

88+

const proxyPort = parsedProxy.port;

5689

if (proxyPort && proxyPort !== port) {

5790

return true;

5891

}

59926093

if (!/^[.*]/.test(proxyHostname)) {

61-

return hostname !== proxyHostname;

94+

return normalizedHostname !== proxyHostname;

6295

}

63966497

if (proxyHostname.startsWith("*")) {

6598

proxyHostname = proxyHostname.slice(1);

6699

}

67-

return !hostname.endsWith(proxyHostname);

100+

return !normalizedHostname.endsWith(proxyHostname);

68101

});

69102

}

70103

@@ -75,7 +108,7 @@ function getProxyForUrl(targetUrl: string | URL): string {

75108

}

7610977110

const protocol = parsedUrl.protocol.split(":", 1)[0];

78-

const hostname = parsedUrl.host.replace(/:\d*$/, "");

111+

const hostname = parsedUrl.hostname;

79112

const port = Number.parseInt(parsedUrl.port, 10) || DEFAULT_PROXY_PORTS[protocol] || 0;

80113

if (!shouldProxyHostname(hostname, port)) {

81114

return "";