403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/www/thttpd/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/www/thttpd/files/extra-patch-ip_real
--- libhttpd.c.orig	2003-12-25 20:06:05.000000000 +0100
+++ libhttpd.c	2005-01-09 00:26:04.867255248 +0100
@@ -2207,6 +2207,18 @@
 		if ( strcasecmp( cp, "keep-alive" ) == 0 )
 		    hc->keep_alive = 1;
 		}
+	    else if ( strncasecmp( buf, "X-Forwarded-For:", 16 ) == 0 )
+		{ // Use real IP if available 
+		cp = &buf[16];
+		cp += strspn( cp, " \t" );
+#ifdef USE_IPV6
+		if (strchr(cp, '.') == NULL)
+		    inet_pton( AF_INET6, cp,
+			&(hc->client_addr.sa_in6.sin6_addr) );
+		else
+#endif
+		inet_aton( cp, &(hc->client_addr.sa_in.sin_addr) );
+	        }
 #ifdef LOG_UNKNOWN_HEADERS
 	    else if ( strncasecmp( buf, "Accept-Charset:", 15 ) == 0 ||
 		      strncasecmp( buf, "Accept-Language:", 16 ) == 0 ||

Youez - 2016 - github.com/yon3zu
LinuXploit