forked from I2P_Developers/i2p.i2p
log IP change in event log
This commit is contained in:
@@ -42,6 +42,7 @@ import net.i2p.router.transport.TransportUtil;
|
||||
import static net.i2p.router.transport.TransportUtil.IPv6Config.*;
|
||||
import static net.i2p.router.transport.udp.PeerTestState.Role.*;
|
||||
import net.i2p.router.transport.crypto.DHSessionKeyBuilder;
|
||||
import net.i2p.router.util.EventLog;
|
||||
import net.i2p.router.util.RandomIterator;
|
||||
import net.i2p.util.Addresses;
|
||||
import net.i2p.util.ConcurrentHashSet;
|
||||
@@ -883,6 +884,10 @@ public class UDPTransport extends TransportImpl implements TimedWeightedPriority
|
||||
changes.put(PROP_IP_CHANGE, Long.toString(now));
|
||||
_context.router().saveConfig(changes, null);
|
||||
|
||||
if (oldIP != null) {
|
||||
_context.router().eventLog().addEvent(EventLog.CHANGE_IP, newIP);
|
||||
}
|
||||
|
||||
// laptop mode
|
||||
// For now, only do this at startup
|
||||
if (oldIP != null &&
|
||||
|
Reference in New Issue
Block a user