dns-proxy: Don't use proxy socket if we fail to bypass it
authorTobias Brunner <tobias@strongswan.org>
Wed, 30 Jul 2014 07:48:08 +0000 (09:48 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 30 Jul 2014 07:48:08 +0000 (09:48 +0200)
commitffa9b6718983ee41ce1e2443f9d5f2fab073f0a0
treefe41aa09fdc4d3bbb5030b062ba538ea7ad55c46
parentd236db8701777534f399eafef4fd23bd58ff6d7c
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.
src/frontends/android/jni/libandroidbridge/backend/android_dns_proxy.c