Open xaozai opened 3 years ago
This is "normal" for v0.3.4. In v0.3.5 it will try to connect, but will drop the connection and will ignore itself.
I have the latest version (0.3.5) and it constantly repeats attempts to connect to itself in the loop.
This, of course, is not very critical, but it seems to me that it would be better if there were no such attempts to connect to itself...
I know. But there is no way to get all IPs of all local interfaces in an OS-independent manner. Additionally, if you are behind the NAT, your external IP will be unknown for ALFIS, and it will try to connect to it anyway. Therefore, I've implemented a trial-and-error approach.
OK, maybe when Alfis detects a connection loop, add this address to the temporary forbidden list?
12:22,030 WARN [alfis::p2p::network] Detected connection loop, ignoring IP: 203:xxxx:741b:42:3214:1234:xxxx:xxxx ! Here is my Ygg IP !
After that...
It looks like Alfis is trying to connect to itself. "Created connection to peer own_IP:4244" and "Peer connection own_IP:4244 has shut down" repeated in a loop.
It may make sense to determine the addresses of the host on which Alfis is running and do not try to connect to these addresses.