mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-28 08:02:54 +00:00
Permit the argument to the -s option to be a hostname. I see no
reason to restrict this to a numeric address. PR: 41841 Submitted by: Dmitry Pryanishnikov <dmitry@atlantis.dp.ua>, Maxim Maximov <mcsi@agava.com>
This commit is contained in:
parent
e9e3b98562
commit
ba0f77df7a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104331
@ -2238,7 +2238,6 @@ tn(int argc, char *argv[])
|
||||
|
||||
if (src_addr != NULL) {
|
||||
memset(&hints, 0, sizeof(hints));
|
||||
hints.ai_flags = AI_NUMERICHOST;
|
||||
hints.ai_family = family;
|
||||
hints.ai_socktype = SOCK_STREAM;
|
||||
error = getaddrinfo(src_addr, 0, &hints, &src_res);
|
||||
|
@ -2238,7 +2238,6 @@ tn(int argc, char *argv[])
|
||||
|
||||
if (src_addr != NULL) {
|
||||
memset(&hints, 0, sizeof(hints));
|
||||
hints.ai_flags = AI_NUMERICHOST;
|
||||
hints.ai_family = family;
|
||||
hints.ai_socktype = SOCK_STREAM;
|
||||
error = getaddrinfo(src_addr, 0, &hints, &src_res);
|
||||
|
Loading…
Reference in New Issue
Block a user