Пример #1
0
 protected CProxy copy() {
   Socks4Proxy copy = new Socks4Proxy(proxyIP, proxyPort, user);
   copy.directHosts = this.directHosts;
   copy.chainProxy = chainProxy;
   return copy;
 }
Пример #2
0
 /** Creates a clone of this proxy. Changes made to the clone should not affect this object. */
 public Object clone() {
   Socks4Proxy newProxy = new Socks4Proxy(proxyIP, proxyPort, user);
   newProxy.directHosts = (InetRange) directHosts.clone();
   newProxy.chainProxy = chainProxy;
   return newProxy;
 }