Skip to content

Commit

Permalink
wireguard: parse conf mtu
Browse files Browse the repository at this point in the history
arm64v8a committed May 15, 2023
1 parent 4cc88e5 commit 7fa7190
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
@@ -495,6 +495,7 @@ object RawUpdater : GroupUpdater() {
address.joinToString("\n") { it.substringBefore("/") }
}
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>()

0 comments on commit 7fa7190

Please sign in to comment.