mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
ifconfig: support (by ignoring it) "inet" before IP address or hostname
This commit is contained in:
parent
2a51af2579
commit
1787e22465
@ -387,6 +387,8 @@ int ifconfig_main(int argc, char **argv)
|
||||
}
|
||||
#endif
|
||||
else {
|
||||
if (strcmp(host, "inet") == 0)
|
||||
continue; /* compat stuff */
|
||||
len_and_sockaddr *lsa = xhost2sockaddr(host, 0);
|
||||
#if ENABLE_FEATURE_IPV6
|
||||
if (lsa->sa.sa_family == AF_INET6) {
|
||||
|
Loading…
Reference in New Issue
Block a user