bugfix: returned awg/wg persistentKeepAlive variable type to string

This commit is contained in:
vladimir.kuznetsov 2024-09-19 15:52:58 +04:00
parent 7ad7f31e4d
commit b881d92a80
2 changed files with 2 additions and 2 deletions

View file

@ -199,7 +199,7 @@ QString WireguardConfigurator::createConfig(const ServerCredentials &credentials
jConfig[config_key::server_pub_key] = connData.serverPubKey;
jConfig[config_key::mtu] = wireguarConfig.value(config_key::mtu).toString(protocols::wireguard::defaultMtu);
jConfig[config_key::persistent_keep_alive] = 25;
jConfig[config_key::persistent_keep_alive] = "25";
QJsonArray allowedIps { "0.0.0.0/0", "::/0" };
jConfig[config_key::allowed_ips] = allowedIps;

View file

@ -15,7 +15,7 @@ struct WGConfig: Decodable {
let serverPublicKey: String
let presharedKey: String?
var allowedIPs: [String]
var persistentKeepAlive: Int
var persistentKeepAlive: String
let splitTunnelType: Int
let splitTunnelSites: [String]