diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2015-08-25 14:05:30 -0700 |
---|---|---|
committer | Craig Tiller <craig.tiller@gmail.com> | 2015-08-25 14:05:30 -0700 |
commit | 9dee67b5cf52608f1dbe1142c43e8bf197cc34da (patch) | |
tree | 6b32dce07d328651b7b59e6b5b9aa5710da2f7cd /src/core/iomgr/udp_server.c | |
parent | 25de92c997117da87cfde68f97400aa32d27d814 (diff) | |
parent | 4087ea6f9c543ec79436c45281475fefe4e33a8f (diff) |
Merge github.com:grpc/grpc into naming-crisis
Diffstat (limited to 'src/core/iomgr/udp_server.c')
-rw-r--r-- | src/core/iomgr/udp_server.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/iomgr/udp_server.c b/src/core/iomgr/udp_server.c index 16482c08f7..6429c38b28 100644 --- a/src/core/iomgr/udp_server.c +++ b/src/core/iomgr/udp_server.c @@ -235,8 +235,10 @@ static int prepare_socket(int fd, const struct sockaddr *addr, int addr_len) { rc = setsockopt(fd, IPPROTO_IP, IP_PKTINFO, &get_local_ip, sizeof(get_local_ip)); if (rc == 0 && addr->sa_family == AF_INET6) { +#if !TARGET_OS_IPHONE rc = setsockopt(fd, IPPROTO_IPV6, IPV6_RECVPKTINFO, &get_local_ip, sizeof(get_local_ip)); +#endif } if (bind(fd, addr, addr_len) < 0) { |