Skip to content
Snippets Groups Projects
Commit 14e1b5ad authored by ree's avatar ree
Browse files

When only 1 'extra_ports' is defined in ctrl/modopts.ini then the...

When only 1 'extra_ports' is defined in ctrl/modopts.ini then the options.extra_ports is an int, and so .replace() fails
parent 75d19548
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,7 @@ if (InString.indexOf(ValidRequest) === -1) { ...@@ -67,7 +67,7 @@ if (InString.indexOf(ValidRequest) === -1) {
function GetToPorts() { function GetToPorts() {
var Ports = GetTerminalServerPorts(); var Ports = GetTerminalServerPorts();
if (options && (options.extra_ports !== undefined)) { if (options && (options.extra_ports !== undefined)) {
var ExtraPorts = options.extra_ports.replace(/\s/ig, ''); // Flash doesn't seem to like spaces in the to-ports var ExtraPorts = options.extra_ports.toString().replace(/\s/ig, ''); // Flash doesn't seem to like spaces in the to-ports
if (ExtraPorts !== "") { if (ExtraPorts !== "") {
Ports += "," + ExtraPorts Ports += "," + ExtraPorts
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment