mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-25 02:50:06 +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},
|
{"public_key", publicKey},
|
||||||
{"pre_shared_key", preSharedKey},
|
{"pre_shared_key", preSharedKey},
|
||||||
{"reserved", QListInt2QJsonArray(reserved)},
|
{"reserved", QListInt2QJsonArray(reserved)},
|
||||||
|
{"allowed_ips", QListStr2QJsonArray({"0.0.0.0/0", "::/0"})},
|
||||||
};
|
};
|
||||||
QJsonObject outbound{
|
QJsonObject outbound{
|
||||||
{"type", "wireguard"},
|
{"type", "wireguard"},
|
||||||
{"name", tun_name},
|
{"name", tun_name},
|
||||||
{"address", QListStr2QJsonArray(localAddress)},
|
{"address", QListStr2QJsonArray(localAddress)},
|
||||||
{"private_key", privateKey},
|
{"private_key", privateKey},
|
||||||
{"peers", peer},
|
{"peers", QJsonArray{peer}},
|
||||||
{"mtu", MTU},
|
{"mtu", MTU},
|
||||||
{"system", useSystemInterface},
|
{"system", useSystemInterface},
|
||||||
{"workers", workerCount}
|
{"workers", workerCount}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user