diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/com/wireguard/android/backend/GoBackend.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/com/wireguard/android/backend/GoBackend.java b/app/src/main/java/com/wireguard/android/backend/GoBackend.java index 51c4c971..a2e872c0 100644 --- a/app/src/main/java/com/wireguard/android/backend/GoBackend.java +++ b/app/src/main/java/com/wireguard/android/backend/GoBackend.java @@ -191,7 +191,7 @@ public final class GoBackend implements Backend { InetAddress address = InetAddress.getByName(config.getInterface().getAddress()); builder.addAddress(address.getHostAddress(), (address instanceof Inet4Address) ? 32 : 128); if (config.getInterface().getDns() != null) - builder.addDnsServer(config.getInterface().getDns()); + builder.addDnsServer(InetAddress.getByName(config.getInterface().getDns()).getHostAddress()); for (final Peer peer : config.getPeers()) { if (peer.getAllowedIPs() != null) { |