* I2PSocketEepGet: Set port to 80

* I2PTunnel:
   - Pass port through HTTP client proxy
   - HTTP server proxy sets host header to
     the value of "spoofedhost.xx" option for port xx
   - Set client options more efficiently
This commit is contained in:
zzz
2012-06-13 19:02:09 +00:00
parent 6e52ae307c
commit 07caf2e316
7 changed files with 65 additions and 19 deletions

View File

@@ -143,6 +143,8 @@ public class I2PSocketEepGet extends EepGet {
// in the SYN packet, saving one RTT.
props.setProperty(PROP_CONNECT_DELAY, CONNECT_DELAY);
I2PSocketOptions opts = _socketManager.buildOptions(props);
// TODO pull port out of URL
opts.setPort(80);
_socket = _socketManager.connect(dest, opts);
} else {
throw new IOException("Unsupported protocol: " + _actualURL);