use the socketManager's new setName function (to let us log more easily)
This commit is contained in:
@ -113,7 +113,9 @@ public abstract class I2PTunnelClientBase extends I2PTunnelTask implements Runna
|
|||||||
protected static I2PSocketManager buildSocketManager() {
|
protected static I2PSocketManager buildSocketManager() {
|
||||||
Properties props = new Properties();
|
Properties props = new Properties();
|
||||||
props.putAll(System.getProperties());
|
props.putAll(System.getProperties());
|
||||||
return I2PSocketManagerFactory.createManager(I2PTunnel.host, Integer.parseInt(I2PTunnel.port), props);
|
I2PSocketManager sockManager = I2PSocketManagerFactory.createManager(I2PTunnel.host, Integer.parseInt(I2PTunnel.port), props);
|
||||||
|
sockManager.setName("Client");
|
||||||
|
return sockManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final int getLocalPort() {
|
public final int getLocalPort() {
|
||||||
|
@ -79,6 +79,7 @@ public class I2PTunnelServer extends I2PTunnelTask implements Runnable {
|
|||||||
props);
|
props);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
sockMgr.setName("Server");
|
||||||
l.log("Ready!");
|
l.log("Ready!");
|
||||||
notifyEvent("openServerResult", "ok");
|
notifyEvent("openServerResult", "ok");
|
||||||
open = true;
|
open = true;
|
||||||
|
Reference in New Issue
Block a user