diff options
author | Arne Schwabe <arne@openvpn.net> | 2019-02-05 14:19:57 +0100 |
---|---|---|
committer | Arne Schwabe <arne@openvpn.net> | 2019-02-05 14:19:57 +0100 |
commit | ca435e27806d2f60b6a63ab163b2af0938f5e7da (patch) | |
tree | f97f7126b4f5347d6a0cad64bf9dbf7aeb18d9b9 /main/src | |
parent | 794076efc12e36a2e8d041e61b8e387bd82462b0 (diff) |
Ignore unset config version (closes #953)
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/main/java/de/blinkt/openvpn/api/AppRestrictions.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/api/AppRestrictions.java b/main/src/main/java/de/blinkt/openvpn/api/AppRestrictions.java index 1b2fc1b3..69900293 100644 --- a/main/src/main/java/de/blinkt/openvpn/api/AppRestrictions.java +++ b/main/src/main/java/de/blinkt/openvpn/api/AppRestrictions.java @@ -85,6 +85,9 @@ public class AppRestrictions { if (Integer.parseInt(configVersion) != CONFIG_VERSION) throw new NumberFormatException("Wrong version"); } catch (NumberFormatException nex) { + if ("(not set)".equals(configVersion)) + // Ignore error if no version present + return; VpnStatus.logError(String.format(Locale.US, "App restriction version %s does not match expected version %d", configVersion, CONFIG_VERSION)); return; } |