From 456f0b06f4691cd7e07b9e5ec5bb86d0117c3456 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sun, 5 Jan 2020 12:37:57 +0100 Subject: [PATCH] pppsetup.cgi: Remove support for configure DNS settings. Fixes #12234. Signed-off-by: Stefan Schantl --- html/cgi-bin/pppsetup.cgi | 29 ----------------------------- 1 file changed, 29 deletions(-) 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'} * -- 2.39.2