public inbox for ipfire-scm@lists.ipfire.org
 help / color / mirror / Atom feed
* [git.ipfire.org] IPFire 2.x development tree branch, next, updated. ab79dc43bf66f66b0c34a10158d46e4727d4df6a
@ 2019-04-04 12:02 Michael Tremer
  0 siblings, 0 replies; only message in thread
From: Michael Tremer @ 2019-04-04 12:02 UTC (permalink / raw)
  To: ipfire-scm

[-- Attachment #1: Type: text/plain, Size: 2458 bytes --]

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".

The branch, next has been updated
       via  ab79dc43bf66f66b0c34a10158d46e4727d4df6a (commit)
      from  aeecc7ae1025f93bae421c13cf05c612bd3e6241 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit ab79dc43bf66f66b0c34a10158d46e4727d4df6a
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date:   Thu Apr 4 11:52:30 2019 +0100

    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(a)ipfire.org>

-----------------------------------------------------------------------

Summary of changes:
 config/rootfiles/core/130/filelists/files | 1 +
 html/cgi-bin/vpnmain.cgi                  | 4 ++++
 2 files changed, 5 insertions(+)

Difference in files:
diff --git a/config/rootfiles/core/130/filelists/files b/config/rootfiles/core/130/filelists/files
index ab1e82fcb..248a2c753 100644
--- a/config/rootfiles/core/130/filelists/files
+++ b/config/rootfiles/core/130/filelists/files
@@ -14,6 +14,7 @@ srv/web/ipfire/cgi-bin/ids.cgi
 srv/web/ipfire/cgi-bin/logs.cgi/ids.dat
 srv/web/ipfire/cgi-bin/logs.cgi/log.dat
 srv/web/ipfire/cgi-bin/ovpnmain.cgi
+srv/web/ipfire/cgi-bin/vpnmain.cgi
 usr/local/bin/ipsec-interfaces
 usr/local/bin/suricatactrl
 usr/local/bin/update-ids-ruleset
diff --git a/html/cgi-bin/vpnmain.cgi b/html/cgi-bin/vpnmain.cgi
index 00282d50b..ecf860d85 100644
--- a/html/cgi-bin/vpnmain.cgi
+++ b/html/cgi-bin/vpnmain.cgi
@@ -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)$/) {


hooks/post-receive
--
IPFire 2.x development tree

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-04-04 12:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-04 12:02 [git.ipfire.org] IPFire 2.x development tree branch, next, updated. ab79dc43bf66f66b0c34a10158d46e4727d4df6a Michael Tremer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox