summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/vpn_l2tp.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/local/www/vpn_l2tp.php')
-rw-r--r--src/usr/local/www/vpn_l2tp.php12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/usr/local/www/vpn_l2tp.php b/src/usr/local/www/vpn_l2tp.php
index 4d37242..80ad5ad 100644
--- a/src/usr/local/www/vpn_l2tp.php
+++ b/src/usr/local/www/vpn_l2tp.php
@@ -125,12 +125,6 @@ if ($_POST) {
$input_errors[] = gettext("Number of L2TP users must be between 1 and 255");
}
- /* if this is an AJAX caller then handle via JSON */
- if (isAjax() && is_array($input_errors)) {
- input_errors2Ajax($input_errors);
- exit;
- }
-
if (!$input_errors) {
$_POST['remoteip'] = $pconfig['remoteip'] = gen_subnet($_POST['remoteip'], $_POST['l2tp_subnet']);
if (is_inrange_v4($_POST['localip'], $_POST['remoteip'], ip_after($_POST['remoteip'], $_POST['n_l2tp_units'] - 1))) {
@@ -142,12 +136,6 @@ if ($_POST) {
}
}
- /* if this is an AJAX caller then handle via JSON */
- if (isAjax() && is_array($input_errors)) {
- input_errors2Ajax($input_errors);
- exit;
- }
-
if (!$input_errors) {
$l2tpcfg['remoteip'] = $_POST['remoteip'];
$l2tpcfg['localip'] = $_POST['localip'];
OpenPOWER on IntegriCloud