mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-12 01:26:48 +08:00
oc_recvfrom_at: fixed discovery of our IPv6 address
This commit is contained in:
committed by
Nikos Mavrogiannopoulos
parent
a80a07fa53
commit
f2e5e7e441
+1
-1
@@ -554,7 +554,7 @@ struct msghdr mh = {
|
||||
}
|
||||
#endif
|
||||
#ifdef IPV6_RECVPKTINFO
|
||||
if (cmsg->cmsg_level != IPPROTO_IPV6 || cmsg->cmsg_type != IPV6_RECVPKTINFO) {
|
||||
if (cmsg->cmsg_level == IPPROTO_IPV6 && cmsg->cmsg_type == IPV6_RECVPKTINFO) {
|
||||
struct in6_pktinfo *pi = (void*)CMSG_DATA(cmsg);
|
||||
struct sockaddr_in6 *a = (struct sockaddr_in6*)our_addr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user