Skip to content
This repository was archived by the owner on May 22, 2023. It is now read-only.
This repository was archived by the owner on May 22, 2023. It is now read-only.

Localhost/RFC 1918 addresses not filtered from node announced addresses #673

@AJolly

Description

@AJolly

Nodes announce RFC1918/localhost addresses to the rest of the network by default.

This causes ecdsa-client to attempt to connect to addresses it can never reach.
There are use cases, esp for testing where we want to be able to reach those addresses, but by default for production we should not be advertising those addresses for connection.

This slows down connection attempts to nodes, and a fix would likely speed up the initial node sync process.

2021-01-15T22:35:22.302Z �[35mDEBUG�[0m swarm2 [limiter] adding a dial job through limiter: /ip4/127.0.0.1/tcp/3920
2021-01-15T22:35:22.302Z �[35mDEBUG�[0m swarm2 [limiter] taking FD token: peer: 16Uiu2HAm8TJ33rA6rH8iq6Jiocms9M51sQsHgnfp8hduaWpFKxn6; addr: /ip4/127.0.0.1/tcp/3920; prev consuming: 1
2021-01-15T22:35:22.302Z �[35mDEBUG�[0m swarm2 [limiter] executing dial; peer: 16Uiu2HAm8TJ33rA6rH8iq6Jiocms9M51sQsHgnfp8hduaWpFKxn6; addr: /ip4/127.0.0.1/tcp/3920; FD consuming: 2; waiting: 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions