mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 13:50:12 +08:00
fix wireguard config gen
This commit is contained in:
parent
6c2ac39a93
commit
aaa79051cf
@ -286,13 +286,14 @@ namespace NekoGui_fmt {
|
||||
{"public_key", publicKey},
|
||||
{"pre_shared_key", preSharedKey},
|
||||
{"reserved", QListInt2QJsonArray(reserved)},
|
||||
{"allowed_ips", QListStr2QJsonArray({"0.0.0.0/0", "::/0"})},
|
||||
};
|
||||
QJsonObject outbound{
|
||||
{"type", "wireguard"},
|
||||
{"name", tun_name},
|
||||
{"address", QListStr2QJsonArray(localAddress)},
|
||||
{"private_key", privateKey},
|
||||
{"peers", peer},
|
||||
{"peers", QJsonArray{peer}},
|
||||
{"mtu", MTU},
|
||||
{"system", useSystemInterface},
|
||||
{"workers", workerCount}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user