log IP change in event log

This commit is contained in:
zzz
2013-11-07 13:13:21 +00:00
parent 5a34e1de4f
commit 5cbecb3599

View File

@@ -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 &&