aboutsummaryrefslogtreecommitdiffstats
path: root/config/nmap
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-08-03 14:42:24 +0200
committerdoktornotor <notordoktor@gmail.com>2015-08-03 14:42:24 +0200
commitda7bf010a8ec71191e0ae1f5cfe1a759b20be7cf (patch)
tree97917ff89004ce3259fe55e7d27fdd0a059b3b2e /config/nmap
parentfbb2657b8e6c0c91c3c9501af43174d66112f847 (diff)
downloadpfsense-packages-da7bf010a8ec71191e0ae1f5cfe1a759b20be7cf.tar.gz
pfsense-packages-da7bf010a8ec71191e0ae1f5cfe1a759b20be7cf.tar.bz2
pfsense-packages-da7bf010a8ec71191e0ae1f5cfe1a759b20be7cf.zip
nmap.inc - remove unneeded checks
Diffstat (limited to 'config/nmap')
-rw-r--r--config/nmap/nmap.inc4
1 files changed, 1 insertions, 3 deletions
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']) {