From e9fe9748fb1c79d3d24976c5bd4566c0e9a48194 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 13 Jul 2018 04:09:09 +0200 Subject: config: dns servers can be null --- app/src/main/java/com/wireguard/config/Peer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src') 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); -- cgit v1.2.3