From: Stefan Schantl Date: Sun, 5 Jan 2020 11:37:57 +0000 (+0100) Subject: pppsetup.cgi: Remove support for configure DNS settings. X-Git-Tag: v2.25-core141~70^2~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=456f0b06f4691cd7e07b9e5ec5bb86d0117c3456;p=ipfire-2.x.git pppsetup.cgi: Remove support for configure DNS settings. Fixes #12234. Signed-off-by: Stefan Schantl --- diff --git a/html/cgi-bin/pppsetup.cgi b/html/cgi-bin/pppsetup.cgi index 4b45ee50c1..bdcd41e24d 100644 --- a/html/cgi-bin/pppsetup.cgi +++ b/html/cgi-bin/pppsetup.cgi @@ -116,19 +116,6 @@ elsif ($pppsettings{'ACTION'} eq $Lang::tr{'save'}) $errormessage = $Lang::tr{'bad characters in script field'}; goto ERROR; } - if ($pppsettings{'DNS1'}) - { - if (!(&General::validip($pppsettings{'DNS1'}))) { - $errormessage = $Lang::tr{'invalid primary dns'}; - goto ERROR; } - } - if ($pppsettings{'DNS2'}) - { - if (!(&General::validip($pppsettings{'DNS2'}))) { - $errormessage = $Lang::tr{'invalid secondary dns'}; - goto ERROR; } - } - if ($pppsettings{'MAXRETRIES'} eq '') { $errormessage = $Lang::tr{'max retries not set'}; goto ERROR; } @@ -948,22 +935,6 @@ print <$Lang::tr{'script name'} -

- - DNS: - - - $Lang::tr{'automatic'} - - - $Lang::tr{'manual'} - - - $Lang::tr{'primary dns'} - - $Lang::tr{'secondary dns'} - -




$Lang::tr{'profile name'} *