]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/statd/sm-notify.c
sm-notify: "-v hostname" doesn't work when IPV6_SUPPORT is enabled
[nfs-utils.git] / utils / statd / sm-notify.c
index a3290aa82a84cf5d517212a7c2fa90b2dbb9bc11..9dbe5d9083361f2422716b004d029ff19e222779 100644 (file)
@@ -349,7 +349,7 @@ smn_bind_address(const char *srcaddr, const char *srcport)
 {
        struct addrinfo *ai = NULL;
        struct addrinfo hint = {
-               .ai_flags       = AI_NUMERICSERV,
+               .ai_flags       = AI_NUMERICSERV | AI_V4MAPPED,
                .ai_family      = nsm_family,
                .ai_protocol    = (int)IPPROTO_UDP,
        };