From 0a0b17d90dd59ae1a743408bd0a67baa1f8f2ec9 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Wed, 30 Jan 2013 17:07:57 -0200 Subject: Avoid mpd based services to set localip to an already used IP on the system. It should fix #1723 --- usr/local/www/vpn_l2tp.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'usr/local/www/vpn_l2tp.php') diff --git a/usr/local/www/vpn_l2tp.php b/usr/local/www/vpn_l2tp.php index 699e468..cedcef5 100644 --- a/usr/local/www/vpn_l2tp.php +++ b/usr/local/www/vpn_l2tp.php @@ -84,6 +84,9 @@ if ($_POST) { if (($_POST['localip'] && !is_ipaddr($_POST['localip']))) { $input_errors[] = gettext("A valid server address must be specified."); } + if (is_ipaddr_configured($_POST['localip'])) { + $input_errors[] = gettext("'Server address' parameter should NOT be set to any IP address currently in use on this firewall."); + } if (($_POST['l2tp_subnet'] && !is_ipaddr($_POST['remoteip']))) { $input_errors[] = gettext("A valid remote start address must be specified."); } -- cgit v1.1