Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSzymon Brandys2010-09-20 10:08:45 +0000
committerSzymon Brandys2010-09-20 10:08:45 +0000
commitebfd74728cd433831142bce6ea76ac06a4a31a98 (patch)
tree09117c2afe03b108a81267fa5a6874e7bf4b6dc0 /bundles
parent9670f56534855ab4121e34cd67f03cd9a6578234 (diff)
downloadeclipse.platform.team-ebfd74728cd433831142bce6ea76ac06a4a31a98.tar.gz
eclipse.platform.team-ebfd74728cd433831142bce6ea76ac06a4a31a98.tar.xz
eclipse.platform.team-ebfd74728cd433831142bce6ea76ac06a4a31a98.zip
bug 323378 - [Net] Native bypass for "*.eclipse.org" does not work
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/proxy/win32/winhttp/ProxyBypass.java11
1 files changed, 4 insertions, 7 deletions
diff --git a/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/proxy/win32/winhttp/ProxyBypass.java b/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/proxy/win32/winhttp/ProxyBypass.java
index 796715129..98e8255e7 100644
--- a/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/proxy/win32/winhttp/ProxyBypass.java
+++ b/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/proxy/win32/winhttp/ProxyBypass.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008 compeople AG and others.
+ * Copyright (c) 2008, 2010 compeople AG and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -13,6 +13,7 @@ package org.eclipse.core.internal.net.proxy.win32.winhttp;
import java.net.URI;
+import org.eclipse.core.internal.net.StringMatcher;
import org.eclipse.core.internal.net.StringUtil;
/**
@@ -67,12 +68,8 @@ public class ProxyBypass {
private boolean isInBypassList(String host) {
for (int i = 0; i < proxyBypassEntries.length; i++) {
String entry = proxyBypassEntries[i];
- if (entry.endsWith("*")) { //$NON-NLS-1$
- if (host.toLowerCase().startsWith(
- entry.substring(0, entry.length() - 1).toLowerCase())) {
- return true;
- }
- } else if (host.equalsIgnoreCase(entry)) {
+ StringMatcher matcher = new StringMatcher(entry, true, false);
+ if (matcher.match(host)) {
return true;
}
}

Back to the top