I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 44c75187 authored by zzz's avatar zzz
Browse files

set tunnel name for ping

parent 2609a4d1
No related branches found
No related tags found
No related merge requests found
......@@ -1662,6 +1662,12 @@ public class I2PTunnel extends EventDispatcherImpl implements Logging {
private void runPing(String allargs, Logging l) {
if (allargs.length() != 0) {
_clientOptions.setProperty(I2Ping.PROP_COMMAND, allargs);
if (ownDest) {
if (!_clientOptions.containsKey("inbound.nickname"))
_clientOptions.setProperty("inbound.nickname", "I2Ping");
if (!_clientOptions.containsKey("outbound.nickname"))
_clientOptions.setProperty("outbound.nickname", "I2Ping");
}
I2PTunnelTask task = new I2Ping(l, ownDest, this, this);
addtask(task);
notifyEvent("pingTaskId", Integer.valueOf(task.getId()));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment