diff options
author | Arne Schwabe <arne@rfc2549.org> | 2012-07-16 04:29:35 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2012-07-16 04:29:35 +0200 |
commit | 1a20bf712119d2a336ba9daa3abbc416a23a81d7 (patch) | |
tree | 55412f3d8e07f4ae102d82f2b425e2a2e9627926 /src/de/blinkt/openvpn/OpenVpnService.java | |
parent | cb18cf6c0aed926eaad59025efd446a270aea57e (diff) |
Fixes error reported on the Android market consolev0.5.12a
- setting 0.0.0.0 as DNS gives NP
- Using a invalid keystone key gives a NP in rsa_sign (Seems to happen on 4.0 -> 4.1 upgrade)
- stupid config converter bug introduced in 5.12
- bump version to 5.12a
Diffstat (limited to 'src/de/blinkt/openvpn/OpenVpnService.java')
-rw-r--r-- | src/de/blinkt/openvpn/OpenVpnService.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/de/blinkt/openvpn/OpenVpnService.java b/src/de/blinkt/openvpn/OpenVpnService.java index 102e5d59..c28802f6 100644 --- a/src/de/blinkt/openvpn/OpenVpnService.java +++ b/src/de/blinkt/openvpn/OpenVpnService.java @@ -239,7 +239,11 @@ public class OpenVpnService extends VpnService implements StateListener { for (String dns : mDnslist ) { - builder.addDnsServer(dns); + try { + builder.addDnsServer(dns); + } catch (IllegalArgumentException iae) { + OpenVPN.logError(R.string.dns_add_error, dns,iae.getLocalizedMessage()); + } } |