mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
vpnmain.cgi: Set MTU to a default when editing an old connection
This field is required and therefore we need to initialize it for old connections. Right now, the CGI throws an error message when editing an existing connection without the MTU being filled in. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -1363,6 +1363,10 @@ END
|
||||
$cgiparams{'MODE'} = "tunnel";
|
||||
}
|
||||
|
||||
if ($cgiparams{'INTERFACE_MTU'} eq "") {
|
||||
$cgiparams{'INTERFACE_MTU'} = 1500;
|
||||
}
|
||||
|
||||
} elsif ($cgiparams{'ACTION'} eq $Lang::tr{'save'}) {
|
||||
$cgiparams{'REMARK'} = &Header::cleanhtml($cgiparams{'REMARK'});
|
||||
if ($cgiparams{'TYPE'} !~ /^(host|net)$/) {
|
||||
|
||||
Reference in New Issue
Block a user