55 |
public HTTPProxy(IndexedPool pool, int port) throws IOException { |
public HTTPProxy(IndexedPool pool, int port) throws IOException { |
56 |
this.pool = pool; |
this.pool = pool; |
57 |
this.port = port; |
this.port = port; |
58 |
this.addr = InetAddress.getLocalHost().getCanonicalHostName(); |
this.addr = InetAddress.getLocalHost().getHostName(); |
59 |
this.url = "http://"+addr+":"+port+"/"; |
this.url = "http://"+addr+":"+port+"/"; |
60 |
this.REWRITE = url+"rewrite/"; |
this.REWRITE = url+"rewrite/"; |
61 |
this.URNPAC = "urn-proxy.pac"; |
this.URNPAC = "urn-proxy.pac"; |