Changed host to DNS name instead of IP

This commit is contained in:
Brad Metcalf 2015-04-03 01:38:28 -05:00
commit b851d068a8
3 changed files with 3 additions and 3 deletions

View file

@ -55,7 +55,7 @@ function runPHP(req, response, next, phpinfo){
ALL_RAW: Object.keys(req.headers).map(function(x){return x+": "+req.headers[x];}).reduce(function(a, b){return a+b+"\n";}, ""), //All HTTP headers as sent by the client in raw form. No transformation on the header names is applied.
SERVER_SOFTWARE: "php-webkit", //The web server's software identity.
SERVER_NAME: phpinfo.host, //The host name or the IP address of the computer running the web server as given in the requested URL.
SERVER_ADDR: phpinfo.host, //The IP address of the computer running the web server.
SERVER_ADDR: req.connection.localAddress || req.socket.localAddress || req.connection.socket.localAddress || "", //The IP address of the computer running the web server.
SERVER_PORT: (phpinfo.port == 0 ? req.connection.localPort : phpinfo.port), //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.

View file

@ -21,7 +21,7 @@
"phpwebkit": {
"bin": "",
"path": "./application",
"host": "127.0.0.1",
"host": "localhost",
"port": 9090
},
"license":"MIT",

View file

@ -40,7 +40,7 @@ var phpwebkit = {
var host = gui.App.manifest.phpwebkit.host;
if(host === undefined || host == "") {
host = '127.0.0.1';
host = 'localhost';
}
var port = gui.App.manifest.phpwebkit.port;