aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-07-13 04:09:09 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-07-13 04:09:09 +0200
commite9fe9748fb1c79d3d24976c5bd4566c0e9a48194 (patch)
tree064bc6b9f0559c037c4eb5aa702dc25941a9dc33
parentconfig: make loadData private (diff)
downloadwireguard-android-e9fe9748fb1c79d3d24976c5bd4566c0e9a48194.tar.xz
wireguard-android-e9fe9748fb1c79d3d24976c5bd4566c0e9a48194.zip
config: dns servers can be null
-rw-r--r--app/src/main/java/com/wireguard/config/Peer.java2
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 ee2c7de..b3532ee 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);