Skip to content
Snippets Groups Projects
Commit 75d19548 authored by ree's avatar ree
Browse files

Fix for when module section is missing from ctrl/modopts.ini.

parent fcd26b22
Branches
Tags
No related merge requests found
......@@ -66,7 +66,7 @@ if (InString.indexOf(ValidRequest) === -1) {
function GetToPorts() {
var Ports = GetTerminalServerPorts();
if (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
if (ExtraPorts !== "") {
Ports += "," + ExtraPorts
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment