Add backward compatibility for fping6 sym-link

pull/139/head
Lonnie Abelbeck 6 years ago
parent 180c6dd8d0
commit a82f40f246

@ -362,6 +362,11 @@ int main(int argc, char** argv)
socket4 = open_ping_socket_ipv4(ping_data_size);
#ifdef IPV6
socket6 = open_ping_socket_ipv6(ping_data_size);
/* if called (sym-linked) via 'fping6', imply '-6'
* for backward compatibility */
if (strstr(prog, "fping6")) {
hints_ai_family = AF_INET6;
}
#endif
if ((uid = getuid())) {

Loading…
Cancel
Save