Giter Club home page Giter Club logo

Comments (9)

orignal avatar orignal commented on June 11, 2024 1

I would prefer to return CANT_REACH_PEER error in this case

from i2pd.

zzzi2p avatar zzzi2p commented on June 11, 2024 1

after discussion, Java I2P agrees with orignal that we should send CANT_REACH_PEER, and propose to make that change in our code unless somebody can come up with a good reason why we should support loopback

from i2pd.

Vort avatar Vort commented on June 11, 2024

I confirm this behaviour, with 2.50.1-8-g5cf1961f.

from i2pd.

Vort avatar Vort commented on June 11, 2024

Check for self address was added intentionally, with this commit: d81ca5f.

However, no one remember why it was needed to be done this way.

I tried to disable check here:

if (leaseSet->GetIdentHash () != GetIdentHash ())
{
LogPrint (eLogDebug, "Destination: New remote LeaseSet added");
m_RemoteLeaseSets[key] = leaseSet;
}
else
LogPrint (eLogDebug, "Destination: Own remote LeaseSet dropped");

Connection established correctly, nothing exploded.

But I can't be sure that it is safe to make such change of course.

from i2pd.

orignal avatar orignal commented on June 11, 2024

I don't see a reason why a destination should be able to connect to itself. For testing purposes, just create two session. Hence this check was added to avoid some potential security breaches.

from i2pd.

Vort avatar Vort commented on June 11, 2024

Probably related:
qbittorrent/qBittorrent#10791
arvidn/libtorrent#7479

from i2pd.

orignal avatar orignal commented on June 11, 2024

cd08756

from i2pd.

anikey-from-i2p avatar anikey-from-i2p commented on June 11, 2024

I just thought i should report it because it also causes log spam with messages like "Remote LeaseSet not found" and "Can't send packets, missing remote LeaseSet, sSID=..."

from i2pd.

zzzi2p avatar zzzi2p commented on June 11, 2024

https://i2pgit.org/i2p-hackers/i2p.i2p/-/merge_requests/173

from i2pd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.