We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1785495 commit 205f5a5Copy full SHA for 205f5a5
src/main/java/com/nyx/bot/utils/http/ProxyUtils.java
@@ -240,7 +240,10 @@ private static Proxy fromSpringConfig() {
240
241
public static boolean shouldBypassProxy(String host) {
242
if (host == null) return true;
243
-
+ // 添加对本地地址(如 localhost、127.0.0.1)的判断
244
+ if (host.equals("localhost") || host.equals("127.0.0.1")) {
245
+ return true;
246
+ }
247
Set<String> noProxyHosts = getNoProxyHosts();
248
for (String pattern : noProxyHosts) {
249
if (pattern.startsWith(".") && host.endsWith(pattern)) {
0 commit comments