forked from I2P_Developers/i2p.i2p
- Protection against modifying metainfos
- Announce peers to local tracker - Ping node on port reception - More info on directory pages - Cleanups
This commit is contained in:
@ -32,6 +32,7 @@ import java.util.Map;
|
||||
|
||||
import net.i2p.client.streaming.I2PSocket;
|
||||
import net.i2p.data.DataHelper;
|
||||
import net.i2p.data.Destination;
|
||||
import net.i2p.util.Log;
|
||||
|
||||
import org.klomp.snark.bencode.BEValue;
|
||||
@ -384,6 +385,13 @@ public class Peer implements Comparable
|
||||
return options;
|
||||
}
|
||||
|
||||
/** @since 0.8.4 */
|
||||
public Destination getDestination() {
|
||||
if (sock == null)
|
||||
return null;
|
||||
return sock.getPeerDestination();
|
||||
}
|
||||
|
||||
/**
|
||||
* Shared state across all peers, callers must sync on returned object
|
||||
* @return non-null
|
||||
|
Reference in New Issue
Block a user