Browse Source

delete address if corresponding transport is disabled

pull/1861/head
orignal 2 years ago
parent
commit
ad5540c9f3
  1. 4
      libi2pd/RouterContext.cpp

4
libi2pd/RouterContext.cpp

@ -803,7 +803,7 @@ namespace i2p @@ -803,7 +803,7 @@ namespace i2p
}
}
else
m_RouterInfo.RemoveNTCP2Address (false);
m_RouterInfo.RemoveNTCP2Address (true);
// SSU2
bool ssu2; i2p::config::GetOption("ssu2.enabled", ssu2);
if (ssu2)
@ -822,7 +822,7 @@ namespace i2p @@ -822,7 +822,7 @@ namespace i2p
}
}
else
m_RouterInfo.RemoveSSU2Address (false);
m_RouterInfo.RemoveSSU2Address (true);
if (ntcp2 || ssu2)
m_RouterInfo.EnableV4 ();
}

Loading…
Cancel
Save