FusionPBX 7 жил өмнө
parent
commit
196679bd39
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      resources/pdo.php

+ 2 - 2
resources/pdo.php

@@ -333,8 +333,8 @@ if ($db_type == "pgsql") {
 		$domain_uuid = uuid();
 	}
 
-//check the domain cidr range
-	if (is_array($_SESSION['domain']["cidr"])) {
+//check the domain cidr range 
+	if (is_array($_SESSION['domain']["cidr"]) && !defined('STDIN')) {
 		$found = false;
 		foreach($_SESSION['domain']["cidr"] as $cidr) {
 			if (check_cidr($cidr, $_SERVER['REMOTE_ADDR'])) {