mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
Add unit test for parsing addresses with bad ports.
svn:r1389
This commit is contained in:
parent
3c99c79df9
commit
625116295a
@ -206,6 +206,9 @@ static struct sa_port_ent {
|
||||
{ "[ffff::1]:1000", AF_INET6, "ffff::1", 1000 },
|
||||
{ "[ffff::1]", AF_INET6, "ffff::1", 0 },
|
||||
{ "[ffff::1", 0, NULL, 0 },
|
||||
{ "[ffff::1]:65599", 0, NULL, 0 },
|
||||
{ "[ffff::1]:0", 0, NULL, 0 },
|
||||
{ "[ffff::1]:-1", 0, NULL, 0 },
|
||||
{ "::1", AF_INET6, "::1", 0 },
|
||||
{ "1:2::1", AF_INET6, "1:2::1", 0 },
|
||||
{ "192.168.0.1:50", AF_INET, "192.168.0.1", 50 },
|
||||
|
Loading…
x
Reference in New Issue
Block a user