From 7ae7d389dd3421f471f8239ea4342a89dfc0d95a Mon Sep 17 00:00:00 2001 From: Juergen Kunz Date: Mon, 30 Mar 2026 18:06:16 +0000 Subject: [PATCH] fix(rust/server): add serde alias for clientAllowedIPs in server config --- changelog.md | 6 ++++++ rust/src/server.rs | 1 + ts/00_commitinfo_data.ts | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index f8a4781..28d3af6 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # 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) add configurable client endpoint and allowed IPs for generated VPN configs diff --git a/rust/src/server.rs b/rust/src/server.rs index 291544a..3274982 100644 --- a/rust/src/server.rs +++ b/rust/src/server.rs @@ -90,6 +90,7 @@ pub struct ServerConfig { pub server_endpoint: Option, /// AllowedIPs for generated WireGuard client configs. /// Defaults to ["0.0.0.0/0"] (full tunnel). + #[serde(alias = "clientAllowedIPs")] pub client_allowed_ips: Option>, } diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index a995b3a..dd3bd95 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { 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' }