Skip to content

server: Use addrmgr.NetAddress for ban/whitelist.#3638

Merged
davecgh merged 1 commit intodecred:masterfrom
davecgh:server_netaddr_for_ban_and_whitelist
Apr 10, 2026
Merged

server: Use addrmgr.NetAddress for ban/whitelist.#3638
davecgh merged 1 commit intodecred:masterfrom
davecgh:server_netaddr_for_ban_and_whitelist

Conversation

@davecgh
Copy link
Copy Markdown
Member

@davecgh davecgh commented Mar 4, 2026

This requires #3633.

Currently, the whitelist and banning detection splits the host and port multiple times since the address previously hadn't been parsed yet.

However, it is no longer necessary since the parsed address is now available as soon as the peer first connects.

This updates the detection funcs to take the parsed address directly.

@davecgh davecgh added this to the 2.2.0 milestone Mar 4, 2026
@davecgh davecgh force-pushed the server_netaddr_for_ban_and_whitelist branch from 44e1740 to e7ef66b Compare March 4, 2026 19:12
@davecgh davecgh force-pushed the server_netaddr_for_ban_and_whitelist branch from e7ef66b to 5d31339 Compare March 6, 2026 18:30
@davecgh davecgh force-pushed the server_netaddr_for_ban_and_whitelist branch from 5d31339 to 465e79e Compare March 17, 2026 06:09
@davecgh davecgh force-pushed the server_netaddr_for_ban_and_whitelist branch from 465e79e to cec584e Compare April 7, 2026 04:16
Currently, the whitelist and banning detection splits the host and port
multiple times since the address previously hadn't been parsed yet.

However, it is no longer necessary since the parsed address is now
available as soon as the peer first connects.

This updates the detection funcs to take the parsed address directly.
@davecgh davecgh force-pushed the server_netaddr_for_ban_and_whitelist branch from cec584e to 0d37f36 Compare April 10, 2026 19:14
@davecgh davecgh merged commit 0d37f36 into decred:master Apr 10, 2026
32 checks passed
@davecgh davecgh deleted the server_netaddr_for_ban_and_whitelist branch April 10, 2026 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants