Suppress untrusted proxy messages if not relevant.
This commit is contained in:
		
							parent
							
								
									df16c815c2
								
							
						
					
					
						commit
						9e85f255ef
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -343,7 +343,7 @@ namespace Mist { | ||||||
| 
 | 
 | ||||||
|     if (!isTrustedProxy(host) || !xRealIp.size()){ |     if (!isTrustedProxy(host) || !xRealIp.size()){ | ||||||
|       static bool msg = false; |       static bool msg = false; | ||||||
|       if (xRealIp.size() && !msg){ |       if (xRealIp.size() && !msg && xRealIp != host){ | ||||||
|         WARN_MSG("Host %s is attempting to act as a proxy, but not trusted", host.c_str()); |         WARN_MSG("Host %s is attempting to act as a proxy, but not trusted", host.c_str()); | ||||||
|         msg = true; |         msg = true; | ||||||
|       } |       } | ||||||
|  | @ -358,7 +358,7 @@ namespace Mist { | ||||||
| 
 | 
 | ||||||
|     if (!isTrustedProxy(host) || !xRealIp.size()){ |     if (!isTrustedProxy(host) || !xRealIp.size()){ | ||||||
|       static bool msg = false; |       static bool msg = false; | ||||||
|       if (xRealIp.size() && !msg){ |       if (xRealIp.size() && !msg && xRealIp != host){ | ||||||
|         WARN_MSG("Host %s is attempting to act as a proxy, but not trusted", host.c_str()); |         WARN_MSG("Host %s is attempting to act as a proxy, but not trusted", host.c_str()); | ||||||
|         msg = true; |         msg = true; | ||||||
|       } |       } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Thulinma
						Thulinma