summaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
Diffstat (limited to 'main/src')
-rw-r--r--main/src/main/java/de/blinkt/openvpn/api/AppRestrictions.java3
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;
}