Skip to content

Commit

Permalink
wireaddr: adds test for punycode
Browse files Browse the repository at this point in the history
Changelog-None
  • Loading branch information
m-schmoock committed Dec 6, 2022
1 parent bb3efcd commit 8bff0e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/test/run-ip_port_parsing.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ int main(int argc, char *argv[])
assert(is_dnsaddr("is-valid.3hostname123.com"));
assert(is_dnsaddr("just-a-hostname-with-dashes"));
assert(is_dnsaddr("lightningd_dest.underscore.allowed.in.hostname.part.com"));
assert(is_dnsaddr("punycode.xn--bcher-kva.valid.com"));
assert(!is_dnsaddr("UPPERCASE.invalid.com"));
assert(!is_dnsaddr("-.invalid.com"));
assert(!is_dnsaddr("invalid.-example.com"));
Expand Down

0 comments on commit 8bff0e8

Please sign in to comment.