mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-02 19:24:14 +00:00
be less picky about next lease set
This commit is contained in:
parent
92dd68fca1
commit
b4e7a91645
@ -237,7 +237,7 @@ namespace datagram
|
|||||||
// bad lease, switch to next one
|
// bad lease, switch to next one
|
||||||
if(m_RemoteLeaseSet) {
|
if(m_RemoteLeaseSet) {
|
||||||
auto ls = m_RemoteLeaseSet->GetNonExpiredLeasesExcluding([&](const i2p::data::Lease& l) -> bool {
|
auto ls = m_RemoteLeaseSet->GetNonExpiredLeasesExcluding([&](const i2p::data::Lease& l) -> bool {
|
||||||
return l.tunnelGateway == m_CurrentRemoteLease->tunnelGateway || l.endDate <= m_CurrentRemoteLease->endDate;
|
return l.tunnelGateway == m_CurrentRemoteLease->tunnelGateway;
|
||||||
});
|
});
|
||||||
auto sz = ls.size();
|
auto sz = ls.size();
|
||||||
if (sz) {
|
if (sz) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user