- Bug fixes next to Darkstar live testing...

- Fix .ovpn download file type.
This commit is contained in:
2026-08-24 16:51:44 +02:00
parent c2de255a0e
commit 3dc7f6bdd5
6 changed files with 43 additions and 31 deletions

10
www/cgi-bin/vpn-admin_board.cgi Executable file → Normal file
View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/bash
#-----------------------------------------------------------------------------------------------------------------------------------
#
# Rx3 VPN Admin Board CGI
@@ -125,6 +125,12 @@ vab_header_print()
echo "Content-type: text/plain"
echo ""
;;
"ovpn")
echo "Content-disposition: attachment; filename=${FILE_NAME}"
echo "Content-type: application/x-openvpn-profile"
echo ""
;;
esac
}
@@ -903,7 +909,7 @@ vab_command_handler()
route_type="defroute"
fi
FORMAT="txt"
FORMAT="ovpn"
if [[ "${TYPE}" == "ext" ]]
then