We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
diff --git a/scripts/httpserver/httpserver.php b/scripts/httpserver/httpserver.php index a7cfb3d..3de3b6b 100755 --- a/scripts/httpserver/httpserver.php +++ b/scripts/httpserver/httpserver.php @@ -270,6 +270,11 @@ class HTTPServer 'CONTENT_TYPE' => @$headers['Content-Type'], 'CONTENT_LENGTH' => $content_length, ); + + // Optain REMOTE_ADDR from socket + if (!socket_getpeername($request->socket, $cgi_env['REMOTE_ADDR'])) { + $cgi_env['REMOTE_ADDR'] = '127.0.0.1'; + } foreach ($headers as $name => $value) {
The text was updated successfully, but these errors were encountered:
included your patch in 6559711, thanks!
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: