Skip to content

Commit

Permalink
ping: Add AI_ADDRCONFIG | AI_V4MAPPED into ai_flags
Browse files Browse the repository at this point in the history
Signed-off-by: Petr Vorel <[email protected]>
  • Loading branch information
pevik committed Nov 17, 2024
1 parent 50c040e commit b208c53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ping/ping.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@
#include "iputils_ni.h"

#ifdef USE_IDN
# define getaddrinfo_flags (AI_CANONNAME | AI_IDN | AI_CANONIDN)
# define getaddrinfo_flags (AI_CANONNAME | AI_IDN | AI_CANONIDN | AI_ADDRCONFIG | AI_V4MAPPED )
# define getnameinfo_flags NI_IDN
#else
# define getaddrinfo_flags (AI_CANONNAME)
# define getaddrinfo_flags (AI_CANONNAME | AI_ADDRCONFIG | AI_V4MAPPED)
# define getnameinfo_flags 0
#endif

Expand Down

0 comments on commit b208c53

Please sign in to comment.