proxy support
This commit is contained in:
@@ -43,6 +43,11 @@ public abstract class Transport extends Emitter {
|
||||
protected SSLContext sslContext;
|
||||
protected Socket socket;
|
||||
protected HostnameVerifier hostnameVerifier;
|
||||
protected String proxyHost;
|
||||
protected int proxyPort;
|
||||
protected String proxyLogin;
|
||||
protected String proxyPassword;
|
||||
protected HttpConnectionProvider httpConnectionProvider;
|
||||
|
||||
protected ReadyState readyState;
|
||||
|
||||
@@ -57,6 +62,11 @@ public abstract class Transport extends Emitter {
|
||||
this.sslContext = opts.sslContext;
|
||||
this.socket = opts.socket;
|
||||
this.hostnameVerifier = opts.hostnameVerifier;
|
||||
this.proxyHost = opts.proxyHost;
|
||||
this.proxyPort = opts.proxyPort;
|
||||
this.proxyLogin = opts.proxyLogin;
|
||||
this.proxyPassword = opts.proxyPassword;
|
||||
this.httpConnectionProvider = opts.httpConnectionProvider;
|
||||
}
|
||||
|
||||
protected Transport onError(String msg, Exception desc) {
|
||||
@@ -152,5 +162,10 @@ public abstract class Transport extends Emitter {
|
||||
public SSLContext sslContext;
|
||||
public HostnameVerifier hostnameVerifier;
|
||||
protected Socket socket;
|
||||
public String proxyHost;
|
||||
public int proxyPort = -1;
|
||||
public String proxyLogin;
|
||||
public String proxyPassword;
|
||||
public HttpConnectionProvider httpConnectionProvider;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user