-
Notifications
You must be signed in to change notification settings - Fork 432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SAM: can't connect to self #2005
Comments
I confirm this behaviour, with 2.50.1-8-g5cf1961f. |
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: Lines 446 to 452 in dfe8b25
Connection established correctly, nothing exploded. But I can't be sure that it is safe to make such change of course. |
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. |
Probably related: |
I would prefer to return CANT_REACH_PEER error in this case |
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 |
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=..." |
Steps to reproduce:
Open three terminals, all with netcat to SAM port.
Terminal 1 (input only):
Copy the VALUE of NAMING LOOKUP.
Terminal 2 (input only):
Terminal 3 (input only):
Then try communicating with terminal 2 and 3.
In java i2p, it works fine: messages from one side appear on the other with a slight delay (because of tunnels i guess).
In i2pd it does not work:
practical consideration
qbittorrent seems to like to connect to itself.
The text was updated successfully, but these errors were encountered: