From 7ca23d3ef57fcb07998b98bc31c78e1805361833 Mon Sep 17 00:00:00 2001 From: Zane Schepke Date: Sun, 13 Oct 2024 23:15:00 -0400 Subject: [PATCH] fix: dns search domains fixes bug where dns search domains were part of config, but now viewable on config screen closes #362 --- .../ui/screens/config/model/InterfaceProxy.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/zaneschepke/wireguardautotunnel/ui/screens/config/model/InterfaceProxy.kt b/app/src/main/java/com/zaneschepke/wireguardautotunnel/ui/screens/config/model/InterfaceProxy.kt index f59bc3e..1addd28 100644 --- a/app/src/main/java/com/zaneschepke/wireguardautotunnel/ui/screens/config/model/InterfaceProxy.kt +++ b/app/src/main/java/com/zaneschepke/wireguardautotunnel/ui/screens/config/model/InterfaceProxy.kt @@ -44,7 +44,7 @@ data class InterfaceProxy( publicKey = i.keyPair.publicKey.toBase64().trim(), privateKey = i.keyPair.privateKey.toBase64().trim(), addresses = i.addresses.joinToString(", ").trim(), - dnsServers = i.dnsServers.joinToString(", ").replace("/", "").trim(), + dnsServers = (i.dnsServers + i.dnsSearchDomains).joinToString(", ").replace("/", "").trim() , listenPort = if (i.listenPort.isPresent) { i.listenPort.get().toString().trim()