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
p2p: fix exclusive node DNS resolution for certain hosts #8643
p2p: fix exclusive node DNS resolution for certain hosts #8643
Conversation
One thing I'm currently confused about is running your test without your fix makes the NA_HOST_AND_PORT_TEST("bar:29080", "bar", "29080"); // Issue https://github.com/monero-project/monero/issues/8633 test succeed. Shouldn't it fail according to the bug? Edit: Ignore, the bug wasn't in |
Yes, as @selsta points out, the bug is in |
@vtnerd did this last commit cover everything? |
@jeffro256 looks good, please squash |
Fixes monero-project#8633. The function `append_net_address` did not parse hostname + port addresses (e.g. `bar:29080`) correctly if the hostname did not contain a `'.'` character. @vtnerd comments 1 clear up 2nd conditional statement
d6bc318
to
faaf2af
Compare
Unrelated, but similar code-wise to monero-project#8643. There is a check in `DNSResolver` which automatically fails to resolve hostnames which do not contain the `.` character. This PR removes that check.
Unrelated, but similar code-wise to monero-project#8643. There is a check in `DNSResolver` which automatically fails to resolve hostnames which do not contain the `.` character. This PR removes that check.
Unrelated, but similar code-wise to monero-project#8643. There is a check in `DNSResolver` which automatically fails to resolve hostnames which do not contain the `.` character. This PR removes that check.
Unrelated, but similar code-wise to monero-project#8643. There is a check in `DNSResolver` which automatically fails to resolve hostnames which do not contain the `.` character. This PR removes that check.
Fixes #8633. The function
append_net_address
did not parse hostname + port addresses (e.g.bar:29080
) correctly if the hostname did not contain a.
character.