* Streaming:

- Listen only on local port if set
   - Listen only for streaming protocol if configured (new option)
   - Javadocs re: ports
This commit is contained in:
zzz
2012-06-19 20:26:46 +00:00
parent 48f29ff1b8
commit 129b16d93d
7 changed files with 43 additions and 3 deletions

View File

@ -122,7 +122,7 @@ public class I2PTunnelHTTPServer extends I2PTunnelServer {
Properties opts = getTunnel().getClientOptions();
String spoofHost;
int ourPort = socket.getLocalPort();
if (ourPort != 80 && ourPort > 0 && ourPort < 65535 && opts != null) {
if (ourPort != 80 && ourPort > 0 && ourPort <= 65535 && opts != null) {
String portSpoof = opts.getProperty("spoofedHost." + ourPort);
if (portSpoof != null)
spoofHost = portSpoof.trim();