Skip to content
Snippets Groups Projects
Commit 1f565ea6 authored by rswindell's avatar rswindell
Browse files

Fix json-services port parsing from services.ini: "Port" is normally

capitalized in the services.ini, though technically its not case sensitive.
parent 4c6266c3
No related branches found
No related tags found
No related merge requests found
...@@ -350,6 +350,9 @@ var initJSON = function() { ...@@ -350,6 +350,9 @@ var initJSON = function() {
f.open("r"); f.open("r");
var ini = f.iniGetObject("JSON"); var ini = f.iniGetObject("JSON");
f.close(); f.close();
// services.ini normally uses "Port" rather than "port", but it's actually not case sensitive
if(ini.port == undefined && ini.Port != undefined)
ini.port = ini.Port;
var host = "localhost"; var host = "localhost";
var port = (ini === null) ? 10088 : Number(ini.port); var port = (ini === null) ? 10088 : Number(ini.port);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment