From da7bf010a8ec71191e0ae1f5cfe1a759b20be7cf Mon Sep 17 00:00:00 2001 From: doktornotor Date: Mon, 3 Aug 2015 14:42:24 +0200 Subject: nmap.inc - remove unneeded checks --- config/nmap/nmap.inc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'config/nmap') diff --git a/config/nmap/nmap.inc b/config/nmap/nmap.inc index bb4494a5..4d3b884a 100644 --- a/config/nmap/nmap.inc +++ b/config/nmap/nmap.inc @@ -67,10 +67,8 @@ function nmap_custom_php_validation_command($post, &$input_errors) { function nmap_custom_add_php_command() { $nmap_options = ""; - if (function_exists("is_ipaddrv6") && function_exists("is_subnetv6")) { - if (is_ipaddrv6($_POST['hostname']) || is_subnetv6($_POST['hostname'])) { + if (is_ipaddrv6($_POST['hostname']) || is_subnetv6($_POST['hostname'])) { $nmap_options .= " -6"; - } } switch($_POST['scanmethod']) { -- cgit v1.2.3