Merge "Guarantee that PAC Local Proxy owns Port" into klp-dev
This commit is contained in:
commit
c10eef7e3b
1 changed files with 10 additions and 2 deletions
|
|
@ -38,7 +38,7 @@ public class ProxyProperties implements Parcelable {
|
|||
|
||||
private String mPacFileUrl;
|
||||
public static final String LOCAL_EXCL_LIST = "";
|
||||
public static final int LOCAL_PORT = 8182;
|
||||
public static final int LOCAL_PORT = -1;
|
||||
public static final String LOCAL_HOST = "localhost";
|
||||
|
||||
public ProxyProperties(String host, int port, String exclList) {
|
||||
|
|
@ -54,6 +54,14 @@ public class ProxyProperties implements Parcelable {
|
|||
mPacFileUrl = pacFileUrl;
|
||||
}
|
||||
|
||||
// Only used in PacManager after Local Proxy is bound.
|
||||
public ProxyProperties(String pacFileUrl, int localProxyPort) {
|
||||
mHost = LOCAL_HOST;
|
||||
mPort = localProxyPort;
|
||||
setExclusionList(LOCAL_EXCL_LIST);
|
||||
mPacFileUrl = pacFileUrl;
|
||||
}
|
||||
|
||||
private ProxyProperties(String host, int port, String exclList, String[] parsedExclList) {
|
||||
mHost = host;
|
||||
mPort = port;
|
||||
|
|
|
|||
Loading…
Reference in a new issue