diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-07-13 04:09:09 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-07-13 04:09:09 +0200 |
commit | e9fe9748fb1c79d3d24976c5bd4566c0e9a48194 (patch) | |
tree | 064bc6b9f0559c037c4eb5aa702dc25941a9dc33 /app/src/main/java/com/wireguard | |
parent | 442295d5b7d6bdd7ffc687f1c9a21bd95a9dea58 (diff) |
config: dns servers can be null
Diffstat (limited to 'app/src/main/java/com/wireguard')
-rw-r--r-- | app/src/main/java/com/wireguard/config/Peer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/com/wireguard/config/Peer.java b/app/src/main/java/com/wireguard/config/Peer.java index ee2c7de4..b3532eeb 100644 --- a/app/src/main/java/com/wireguard/config/Peer.java +++ b/app/src/main/java/com/wireguard/config/Peer.java @@ -350,7 +350,7 @@ public class Peer { notifyPropertyChanged(BR.publicKey); } - public void setInterfaceDNSRoutes(final String dnsServers) { + public void setInterfaceDNSRoutes(@Nullable final String dnsServers) { final Collection<String> ips = new HashSet<>(Arrays.asList(Attribute.stringToList(allowedIPs))); final boolean modifyAllowedIPs = ips.containsAll(DEFAULT_ROUTE_MOD_RFC1918_V4); |