Allow wildcard for bypass proxy
Allow *.example.com to be bypassed Bug: 7422561 Change-Id: Ia7bd2d5b0a19794ae3bcccb8d6b78aeb2ba9c5fb
This commit is contained in:
@@ -67,7 +67,7 @@ public class ProxySelector extends Fragment implements DialogCreatable {
|
||||
"^$|^[" + HC + "]+(\\-[" + HC + "]+)*(\\.[" + HC + "]+(\\-[" + HC + "]+)*)*$";
|
||||
private static final Pattern HOSTNAME_PATTERN;
|
||||
private static final String EXCLUSION_REGEXP =
|
||||
"$|^[" + HC + "]+(\\-[" + HC + "]+)*(\\.[" + HC + "]+(\\-[" + HC + "]+)*)*$";
|
||||
"$|^(\\*)?\\.?[" + HC + "]+(\\-[" + HC + "]+)*(\\.[" + HC + "]+(\\-[" + HC + "]+)*)*$";
|
||||
private static final Pattern EXCLUSION_PATTERN;
|
||||
static {
|
||||
HOSTNAME_PATTERN = Pattern.compile(HOSTNAME_REGEXP);
|
||||
|
Reference in New Issue
Block a user