fix(rust/server): add serde alias for clientAllowedIPs in server config
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2026-03-30 - 1.16.1 - fix(rust/server)
|
||||||
|
add serde alias for clientAllowedIPs in server config
|
||||||
|
|
||||||
|
- Accepts the camelCase clientAllowedIPs field when deserializing server configuration.
|
||||||
|
- Improves compatibility with existing or external configuration formats without changing runtime behavior.
|
||||||
|
|
||||||
## 2026-03-30 - 1.16.0 - feat(server)
|
## 2026-03-30 - 1.16.0 - feat(server)
|
||||||
add configurable client endpoint and allowed IPs for generated VPN configs
|
add configurable client endpoint and allowed IPs for generated VPN configs
|
||||||
|
|
||||||
|
|||||||
@@ -90,6 +90,7 @@ pub struct ServerConfig {
|
|||||||
pub server_endpoint: Option<String>,
|
pub server_endpoint: Option<String>,
|
||||||
/// AllowedIPs for generated WireGuard client configs.
|
/// AllowedIPs for generated WireGuard client configs.
|
||||||
/// Defaults to ["0.0.0.0/0"] (full tunnel).
|
/// Defaults to ["0.0.0.0/0"] (full tunnel).
|
||||||
|
#[serde(alias = "clientAllowedIPs")]
|
||||||
pub client_allowed_ips: Option<Vec<String>>,
|
pub client_allowed_ips: Option<Vec<String>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@push.rocks/smartvpn',
|
name: '@push.rocks/smartvpn',
|
||||||
version: '1.16.0',
|
version: '1.16.1',
|
||||||
description: 'A VPN solution with TypeScript control plane and Rust data plane daemon'
|
description: 'A VPN solution with TypeScript control plane and Rust data plane daemon'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user