From 5d66f6b2e5be70ae7750018282eef98c10219dcd Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 13 Jul 2018 04:09:09 +0200 Subject: [PATCH] config: dns servers can be null Signed-off-by: Jason A. Donenfeld --- app/src/main/java/com/wireguard/config/Peer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ips = new HashSet<>(Arrays.asList(Attribute.stringToList(allowedIPs))); final boolean modifyAllowedIPs = ips.containsAll(DEFAULT_ROUTE_MOD_RFC1918_V4);