mirror of
https://github.com/MatsuriDayo/NekoBoxForAndroid.git
synced 2025-12-19 14:40:06 +08:00
wireguard: parse conf mtu
This commit is contained in:
parent
908002530b
commit
60dd5a4e3b
@ -534,6 +534,7 @@ object RawUpdater : GroupUpdater() {
|
||||
if (localAddresses.isNullOrEmpty()) error("Empty address in 'Interface' selection")
|
||||
bean.localAddress = localAddresses.flatMap { it.split(",") }.joinToString("\n")
|
||||
bean.privateKey = iface["PrivateKey"]
|
||||
bean.mtu = iface["MTU"]?.toIntOrNull()
|
||||
val peers = ini.getAll("Peer")
|
||||
if (peers.isNullOrEmpty()) error("Missing 'Peer' selections")
|
||||
val beans = mutableListOf<WireGuardBean>()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user