openvpn: cleanup and fix netifd proto script logic
authorChen Minqiang <redacted>
Tue, 17 Mar 2026 11:16:27 +0000 (19:16 +0800)
committerHannu Nyman <redacted>
Sat, 21 Mar 2026 13:47:47 +0000 (15:47 +0200)
commitbda60d1fc5a178031d52f09136c100b312388e5d
treed15bd17373bb7bba1bb45c726783531810cc64a4
parentc3792992f2bc37779e94a2eeca1e79737aac5e15
openvpn: cleanup and fix netifd proto script logic

- Default to '--ifconfig-noexec' and '--route-noexec' to allow hotplug
  script to handle IP and routing configuration.
- Only append '--auth-user-pass-verify' if the option is explicitly
  configured to avoid unexpected authentication requirements.
- Fix missing retrieval of 'auth_user_pass', 'askpass', and 'tls_verify'.
- Remove redundant '--config' parameter (managed by option_builder).
- Simplify 'script_security' assignment logic.

Signed-off-by: Chen Minqiang <redacted>
net/openvpn/files/lib/netifd/proto/openvpn.sh
git clone https://git.99rst.org/PROJECT