mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-05 00:00:45 -04:00
dns-proxy: Don't use proxy socket if we fail to bypass it
This will result in an infinite loop as packets sent over that socket will again pass through the TUN device and the DNS proxy. Apparently, bypassing fails when airplane mode is enabled. Fixes #662.
This commit is contained in:
parent
d236db8701
commit
ffa9b67189
@ -125,6 +125,8 @@ static int open_socket(int family)
|
||||
skt, family))
|
||||
{
|
||||
DBG1(DBG_NET, "installing bypass policy for proxy socket failed");
|
||||
close(skt);
|
||||
return -1;
|
||||
}
|
||||
return skt;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user