]> git.ipfire.org Git - ipfire-2.x.git/commit
ovpnmain.cgi: Fixes bug13869 - shows values from vpnsettings in advanced server page master
authorAdolf Belka <adolf.belka@ipfire.org>
Wed, 20 Aug 2025 16:51:47 +0000 (18:51 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 22 Aug 2025 13:07:13 +0000 (13:07 +0000)
commitc293ac4b282da94f2d4b7449738c4be2a590c86e
tree44410abdb3f913e407a739badb47bcf276a40e11
parente04f5376ba18767a6a9eccf104c472295a75340b
ovpnmain.cgi: Fixes bug13869 - shows values from vpnsettings in advanced server page

- In the previous version the cgiparams hash was filled from the ovpn/settings file.
   However with the new version of this file that is no longer done. For the values
   of protocol, redirect_gw, mssfix, dataciphers, route_push the hash file was changed
   from %cgiparams to %vpnsettings. This was not done for the values of dciphers, dauth
   or tlsauth. These values still got their entries from the %cgiparams hash but this
   hash is empty as it has not been filled.
- This patch replaces the use of $cgiparams with $vpnsettings.
- Tested this out on my vm testbed and confirmed that the saved values are now shown on
   the advanced settings wui page.

Fixes: bug13869
Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/ovpnmain.cgi