Browse Source

Merge remote-tracking branch 'origin/udptunnel-fix'

pull/771/head
Jeff Becker 8 years ago
parent
commit
d9090486e3
  1. 2
      Datagram.cpp

2
Datagram.cpp

@ -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…
Cancel
Save