From b2f2caf3bbcbcceae5e03c8b4b5272b48668f3e4 Mon Sep 17 00:00:00 2001 From: dpeca Date: Thu, 12 Apr 2018 01:29:49 +0200 Subject: [PATCH] equalize with master --- web/reset/mail/index.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/reset/mail/index.php b/web/reset/mail/index.php index f09c198f..85c7fb76 100644 --- a/web/reset/mail/index.php +++ b/web/reset/mail/index.php @@ -1,19 +1,18 @@ '; print_r($_SERVER); exit; $ok=0; $ip=$_SERVER['REMOTE_ADDR']; exec (VESTA_CMD."v-list-sys-ips json", $output, $return_var); $output=implode('', $output); $arr=json_decode($output, true); foreach ($arr as $arr_key => $arr_val) { + // search for NAT IPs and allow them if ($ip==$arr_key || $ip==$arr_val['NAT']) { $ok=1; break; @@ -22,7 +21,6 @@ foreach ($arr as $arr_key => $arr_val) { if ($ip == $_SERVER['SERVER_ADDR']) $ok=1; if ($ip == '127.0.0.1') $ok=1; if ($ok==0) exit; -if (isset($_SERVER['HTTP_X_REAL_IP']) || isset($_SERVER['HTTP_X_FORWARDED_FOR'])) exit; // // sourceforge.net/projects/postfixadmin/