]> git.ipfire.org Git - ipfire-2.x.git/commit
ovpnmain.cgi: Fixes bug13869 - shows values from vpnsettings in advanced server page next
authorAdolf Belka <adolf.belka@ipfire.org>
Wed, 20 Aug 2025 16:51:47 +0000 (18:51 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 20 Aug 2025 17:10:16 +0000 (17:10 +0000)
commit922c244692d7792ad3c57f3cf3a26aecc3398899
tree8426d44959c8945d53949f3848fcaa1898aed163
parent77f1c6dc3999d2174079bf57f1a6078c5e74f7ab
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