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 | 5d66f6b2e5be70ae7750018282eef98c10219dcd (patch) | |
tree | 064bc6b9f0559c037c4eb5aa702dc25941a9dc33 /app/src/main/java | |
parent | fec5fa8caf67dc5da7a7d703f2ca879e7d1174fd (diff) |
config: dns servers can be null
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main/java')
-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); |