Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Fix PHP not being able to get a visitor's IP. #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function runPHP(req, response, next, phpdir){
SERVER_PORT: 8011, //The port to which the request was sent.
GATEWAY_INTERFACE: "CGI/1.1", //The CGI Specification version supported by the web server; always set to CGI/1.1.
SERVER_PROTOCOL: "", //The HTTP protocol version used by the current request.
REMOTE_ADDR: "", //The IP address of the computer that sent the request.
REMOTE_ADDR: req.headers['x-forwarded-for'] || req.connection.remoteAddress || req.socket.remoteAddress || req.connection.socket.remoteAddress, //The IP address of the computer that sent the request.
REMOTE_PORT: "", //The port from which the request was sent.
DOCUMENT_ROOT: "", //The absolute path of the web site files. It has the same value as Documents Path.
INSTANCE_ID: "", //The numerical identifier of the host which served the request. On Abyss Web Server X1, it is always set to 1 since there is only a single host.
Expand Down