Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a513f6a authored by Balazs Scheidler's avatar Balazs Scheidler Committed by Patrick McHardy
Browse files

tproxy: allow non-local binds of IPv6 sockets if IP_TRANSPARENT is enabled

parent 6c468622
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -343,7 +343,8 @@ int inet6_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
			 */
			v4addr = LOOPBACK4_IPV6;
			if (!(addr_type & IPV6_ADDR_MULTICAST))	{
				if (!ipv6_chk_addr(net, &addr->sin6_addr,
				if (!inet->transparent &&
				    !ipv6_chk_addr(net, &addr->sin6_addr,
						   dev, 0)) {
					err = -EADDRNOTAVAIL;
					goto out_unlock;