forked from I2P_Developers/i2p.i2p
* 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:
@@ -111,7 +111,7 @@ public class I2PSocketEepGet extends EepGet {
|
||||
if ("http".equals(url.getProtocol())) {
|
||||
String host = url.getHost();
|
||||
int port = url.getPort();
|
||||
if (port <= 0 || port >= 65535)
|
||||
if (port <= 0 || port > 65535)
|
||||
port = 80;
|
||||
|
||||
// HTTP Proxy compatibility http://i2p/B64KEY/blah
|
||||
|
@@ -105,6 +105,9 @@ public interface I2PSocketOptions {
|
||||
|
||||
/**
|
||||
* The local port.
|
||||
* Zero (default) means you will receive traffic on all ports.
|
||||
* Nonzero means you will get traffic ONLY for that port, use with care,
|
||||
* as most applications do not specify a remote port.
|
||||
* @param port 0 - 65535
|
||||
* @since 0.8.9
|
||||
*/
|
||||
|
@@ -200,6 +200,9 @@ class I2PSocketOptionsImpl implements I2PSocketOptions {
|
||||
|
||||
/**
|
||||
* The local port.
|
||||
* Zero (default) means you will receive traffic on all ports.
|
||||
* Nonzero means you will get traffic ONLY for that port, use with care,
|
||||
* as most applications do not specify a remote port.
|
||||
* @param port 0 - 65535
|
||||
* @since 0.8.9
|
||||
*/
|
||||
|
Reference in New Issue
Block a user