Kaynağa Gözat

Merge pull request #419 from own3mall/master

Fix for stop page if using NAT and Public Display IP
OwN-3m-All 7 yıl önce
ebeveyn
işleme
48d1de6817
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      modules/gamemanager/server_monitor.php

+ 1 - 1
modules/gamemanager/server_monitor.php

@@ -296,7 +296,7 @@ function exec_ogp_module() {
 		
 		
 		if( $show_all 
 		if( $show_all 
 			OR ( isset( $_GET['home_id'] ) and $_GET['home_id'] == $server_home['home_id'] ) 
 			OR ( isset( $_GET['home_id'] ) and $_GET['home_id'] == $server_home['home_id'] ) 
-			OR ( isset( $_GET['home_id-mod_id-ip-port'] ) and $server_home['home_id'] == $post_home_id and $server_home['mod_id'] == $post_mod_id and $post_ip == $server_home['ip'] and $post_port == $server_home['port'] ) 
+			OR ( isset( $_GET['home_id-mod_id-ip-port'] ) and $server_home['home_id'] == $post_home_id and $server_home['mod_id'] == $post_mod_id and ($post_ip == $server_home['ip'] || ($post_ip == $server_home['agent_ip'] && $server_home['use_nat'] == 1)) and $post_port == $server_home['port'] ) 
 			OR ( isset( $_GET['home_cfg_id'] ) and $_GET['home_cfg_id'] == $server_home['home_cfg_id'] ) 
 			OR ( isset( $_GET['home_cfg_id'] ) and $_GET['home_cfg_id'] == $server_home['home_cfg_id'] ) 
 		  )
 		  )
 		{
 		{