@push.rocks/smartvpn 1.15.0 → 1.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist_rust/smartvpn_daemon_linux_amd64 +0 -0
- package/dist_rust/smartvpn_daemon_linux_arm64 +0 -0
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/smartvpn.interfaces.d.ts +8 -0
- package/package.json +1 -1
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/smartvpn.interfaces.ts +8 -0
|
Binary file
|
|
Binary file
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@push.rocks/smartvpn',
|
|
6
|
-
version: '1.
|
|
6
|
+
version: '1.16.1',
|
|
7
7
|
description: 'A VPN solution with TypeScript control plane and Rust data plane daemon'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSxzQkFBc0I7SUFDNUIsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLHlFQUF5RTtDQUN2RixDQUFBIn0=
|
|
@@ -112,6 +112,14 @@ export interface IVpnServerConfig {
|
|
|
112
112
|
* Controls where decrypted traffic goes: allow through, block, or redirect to a target.
|
|
113
113
|
* Default: all traffic passes through (backward compatible). */
|
|
114
114
|
destinationPolicy?: IDestinationPolicy;
|
|
115
|
+
/** Public endpoint address for generated client configs (e.g. 'vpn.example.com:51820').
|
|
116
|
+
* Used as the WireGuard `Endpoint =` and SmartVPN `serverUrl` host.
|
|
117
|
+
* Defaults to listenAddr (which is typically wrong for remote clients). */
|
|
118
|
+
serverEndpoint?: string;
|
|
119
|
+
/** AllowedIPs for generated WireGuard client configs.
|
|
120
|
+
* Controls what traffic the client routes through the VPN tunnel.
|
|
121
|
+
* Defaults to ['0.0.0.0/0'] (full tunnel). Set to e.g. ['10.8.0.0/24'] for split tunnel. */
|
|
122
|
+
clientAllowedIPs?: string[];
|
|
115
123
|
}
|
|
116
124
|
/**
|
|
117
125
|
* Destination routing policy for VPN client traffic.
|
package/package.json
CHANGED
package/ts/00_commitinfo_data.ts
CHANGED
|
@@ -129,6 +129,14 @@ export interface IVpnServerConfig {
|
|
|
129
129
|
* Controls where decrypted traffic goes: allow through, block, or redirect to a target.
|
|
130
130
|
* Default: all traffic passes through (backward compatible). */
|
|
131
131
|
destinationPolicy?: IDestinationPolicy;
|
|
132
|
+
/** Public endpoint address for generated client configs (e.g. 'vpn.example.com:51820').
|
|
133
|
+
* Used as the WireGuard `Endpoint =` and SmartVPN `serverUrl` host.
|
|
134
|
+
* Defaults to listenAddr (which is typically wrong for remote clients). */
|
|
135
|
+
serverEndpoint?: string;
|
|
136
|
+
/** AllowedIPs for generated WireGuard client configs.
|
|
137
|
+
* Controls what traffic the client routes through the VPN tunnel.
|
|
138
|
+
* Defaults to ['0.0.0.0/0'] (full tunnel). Set to e.g. ['10.8.0.0/24'] for split tunnel. */
|
|
139
|
+
clientAllowedIPs?: string[];
|
|
132
140
|
}
|
|
133
141
|
|
|
134
142
|
/**
|