summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/java/com/wireguard
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-09-30 19:42:02 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-09-30 19:42:02 +0200
commit5284e19f0b0b7626209629a3e519bf59da118958 (patch)
tree9d3af2c6bd72538b13415fc049fca1882cd34155 /app/src/main/java/com/wireguard
parent734b9e46623b2ff6715db49c7b6fb9b34b0905ac (diff)
InetAddresses: prepare for Android 10's real method support
Diffstat (limited to 'app/src/main/java/com/wireguard')
-rw-r--r--app/src/main/java/com/wireguard/config/InetAddresses.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/main/java/com/wireguard/config/InetAddresses.java b/app/src/main/java/com/wireguard/config/InetAddresses.java
index ea4ad352..69fd6cfb 100644
--- a/app/src/main/java/com/wireguard/config/InetAddresses.java
+++ b/app/src/main/java/com/wireguard/config/InetAddresses.java
@@ -49,6 +49,8 @@ public final class InetAddresses {
if (cause instanceof IllegalArgumentException)
throw new ParseException(InetAddress.class, address, cause);
throw new RuntimeException(e);
+ } catch (final IllegalArgumentException e) {
+ throw new ParseException(InetAddress.class, address, e);
}
}
}