From 1f565ea64927a93278b9d38a7a6dbd24d5070684 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Mon, 11 May 2015 06:41:25 +0000 Subject: [PATCH] Fix json-services port parsing from services.ini: "Port" is normally capitalized in the services.ini, though technically its not case sensitive. --- xtrn/syncwall/syncwall.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xtrn/syncwall/syncwall.js b/xtrn/syncwall/syncwall.js index 9b66e245b8..805fa60486 100644 --- a/xtrn/syncwall/syncwall.js +++ b/xtrn/syncwall/syncwall.js @@ -350,6 +350,9 @@ var initJSON = function() { f.open("r"); var ini = f.iniGetObject("JSON"); 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 port = (ini === null) ? 10088 : Number(ini.port); } -- GitLab