mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-05-08 14:33:23 +00:00
Add hostName exclusion from routes for AWG/Wireguard
This commit is contained in:
@@ -127,7 +127,8 @@ open class Wireguard : Protocol() {
|
||||
}
|
||||
}
|
||||
|
||||
configData["hostName"]?.let { excludeRoute(InetNetwork.parse(it)) }
|
||||
configDataJson.getString("hostName").let { excludeRoute(InetNetwork.parse(it)) }
|
||||
|
||||
configData["Endpoint"]?.let { setEndpoint(InetEndpoint.parse(it)) }
|
||||
configData["PersistentKeepalive"]?.let { setPersistentKeepalive(it.toInt()) }
|
||||
configData["PrivateKey"]?.let { setPrivateKeyHex(it.base64ToHex()) }
|
||||
|
||||
Reference in New Issue
Block a user