Klaus Demo nginx / dbc205a
IPv6 for Win32 Igor Sysoev 10 years ago
2 changed file(s) with 18 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1919 EVENT_MODULES="$EVENT_MODULES $SELECT_MODULE"
2020 fi
2121
22 if [ $NGX_IPV6 = YES ]; then
23 have=NGX_HAVE_INET6 . auto/have
24 fi
25
2226 have=NGX_HAVE_AIO . auto/have
2327 have=NGX_HAVE_IOCP . auto/have
648648
649649 (void) ngx_cpystrn(p, host, len);
650650
651 #if (NGX_WIN32)
652
653 rc = WSAStringToAddress((char *) p, AF_INET6, NULL,
654 (SOCKADDR *) sin6, &u->socklen);
655 rc = !rc;
656
657 if (u->port) {
658 sin6->sin6_port = htons(u->port);
659 }
660
661 #else
662
651663 rc = inet_pton(AF_INET6, (const char *) p, &sin6->sin6_addr);
664
665 #endif
652666
653667 ngx_free(p);
654668