I2CP: Move the port 7654 definition

This commit is contained in:
zzz
2018-12-03 16:17:30 +00:00
parent 5e7a277e98
commit 7c5162e155
16 changed files with 27 additions and 30 deletions

View File

@ -64,6 +64,12 @@ public interface I2PClient {
*/
public final static String PROP_FAST_RECEIVE = "i2cp.fastReceive";
/**
* 7654
* @since 0.9.38
*/
public static final int DEFAULT_LISTEN_PORT = 7654;
/** protocol flag that must be sent when opening the i2cp connection to the router */
public final static int PROTOCOL_BYTE = 0x2A;

View File

@ -444,10 +444,4 @@ public interface I2PSession {
* @since 0.9.2
*/
public static final int PROTO_DATAGRAM_RAW = 18;
/**
* 7654
* @since 0.9.38
*/
public static final int DEFAULT_LISTEN_PORT = 7654;
}

View File

@ -224,7 +224,7 @@ public abstract class I2PSessionImpl implements I2PSession, I2CPMessageReader.I2
}
}
public static final int LISTEN_PORT = DEFAULT_LISTEN_PORT;
public static final int LISTEN_PORT = I2PClient.DEFAULT_LISTEN_PORT;
private static final int BUF_SIZE = 32*1024;