-
-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
featureNew feature or requestNew feature or requestnmrsChanges to nmrsChanges to nmrsvpnChanges to VPN surfaceChanges to VPN surface
Description
part of #288. depends on OpenVpnConfig being merged.
changes
new file: api/builders/openvpn_builder.rs
fluent builder that constructs OpenVpnConfig. validates at build time:
remotemust be set and non-emptyauth_typemust be set- if
PasswordorPasswordTls:usernamerequired - if
TlsorPasswordTls:ca_cert,client_cert,client_keyrequired - port 1-65535 if set
methods: new(name), remote(), auth_type(), username(), password(), ca_cert(), client_cert(), client_key(), key_password(), port(), tcp(), cipher(), auth(), dns(), mtu(), uuid(), autoconnect(), options(), build() -> Result<OpenVpnConfig>
re-export from builders/mod.rs.
tests
unit tests mirroring wireguard_builder.rs structure — required field checks, validation errors, happy paths.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featureNew feature or requestNew feature or requestnmrsChanges to nmrsChanges to nmrsvpnChanges to VPN surfaceChanges to VPN surface