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

Skip to content
Snippets Groups Projects
Unverified Commit e43810f1 authored by zzz's avatar zzz
Browse files

SSU2: Don't send our RI after outbound handshake, it's in the handshake already

parent 9d49dc7a
No related branches found
No related tags found
No related merge requests found
......@@ -257,6 +257,9 @@ class OutboundEstablishState {
if (m.getType() == DatabaseStoreMessage.MESSAGE_TYPE) {
DatabaseStoreMessage dsm = (DatabaseStoreMessage) m;
if (dsm.getKey().equals(_context.routerHash())) {
// version 2 sends our RI in handshake
if (getVersion() > 1)
return;
_isFirstMessageOurDSM = true;
}
}
......@@ -609,8 +612,8 @@ class OutboundEstablishState {
}
_confirmedSentCount++;
_nextSend = _lastSend + delay;
if (_log.shouldLog(Log.DEBUG))
_log.debug("Send confirm packets, nextSend in " + delay);
if (_log.shouldDebug())
_log.debug("Send confirm packets, nextSend in " + delay + " on " + this);
if (_currentState == OutboundState.OB_STATE_UNKNOWN ||
_currentState == OutboundState.OB_STATE_PENDING_INTRO ||
_currentState == OutboundState.OB_STATE_INTRODUCED ||
......
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