]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
vpnmain.cgi: Fix saving ENABLED status.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 7 Aug 2012 15:04:37 +0000 (17:04 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 7 Aug 2012 15:04:37 +0000 (17:04 +0200)
The web interface ignores what has been set to the ENABLED
checkbox.

http://lists.ipfire.org/pipermail/development/2012-August/000047.html

html/cgi-bin/vpnmain.cgi

index 831ef93bf1f8c11b59bece2644e97a7364db18b7..56d80c6e1fc54719127251c588d245f3cb308e64 100644 (file)
@@ -436,6 +436,7 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'save'} && $cgiparams{'TYPE'} eq '' && $cg
        goto SAVE_ERROR;
     }
 
+    $vpnsettings{'ENABLED'} = $cgiparams{'ENABLED'};
     $vpnsettings{'VPN_IP'} = $cgiparams{'VPN_IP'};
     $vpnsettings{'VPN_DELAYED_START'} = $cgiparams{'VPN_DELAYED_START'};
     $vpnsettings{'RW_NET'} = $cgiparams{'RW_NET'};