From 90c75dc44b9940339dc614f3f4f65349d35f5bc3 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Fri, 14 Sep 2012 18:31:04 +0200 Subject: Set persist-remote-ip when setting persist-tun --- src/de/blinkt/openvpn/VpnProfile.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/de/blinkt/openvpn/VpnProfile.java') diff --git a/src/de/blinkt/openvpn/VpnProfile.java b/src/de/blinkt/openvpn/VpnProfile.java index bc783fd..4ac138d 100644 --- a/src/de/blinkt/openvpn/VpnProfile.java +++ b/src/de/blinkt/openvpn/VpnProfile.java @@ -339,8 +339,11 @@ public class VpnProfile implements Serializable{ if(mUseFloat) cfg+= "float\n"; - if(mPersistTun) + if(mPersistTun) { cfg+= "persist-tun\n"; + cfg+= "# persist-tun also sets persist-remote-ip to avoid DNS resolve problem\n"; + cfg+= "persist-remote-ip\n"; + } SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); boolean usesystemproxy = prefs.getBoolean("usesystemproxy", true); -- cgit v1.2.3