Add IPv6 address to VPN service (#1615)

This commit is contained in:
狂男风 authored and GitHub committed 2025-11-26 17:15:19 +08:00
1 parent 1f2517c731
commit 28e645a277
1 file changed
+1
@@ -83,6 +83,7 @@ class TauriVpnService : VpnService() {
val ipParts = ipv4Addr.split("/")
if (ipParts.size != 2) throw IllegalArgumentException("Invalid IP addr string")
builder.addAddress(ipParts[0], ipParts[1].toInt())
builder.addAddress("fd00::1", 128)
builder.setMtu(mtu)
builder.addDnsServer(dns)