Skip to content
This repository has been archived by the owner on Apr 15, 2021. It is now read-only.

Commit

Permalink
chore: Fix names of websocket options
Browse files Browse the repository at this point in the history
  • Loading branch information
qdot committed Apr 19, 2019
1 parent 8bc1274 commit f9d268b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/ButtplugServerCLI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,17 +189,17 @@ export class ButtplugServerCLI {
const host: string = commander.websocketallinterfaces ? "0.0.0.0" : "127.0.0.1";

const wsServer = new ButtplugNodeWebsocketServer(commander.servername, commander.pingtime);
if (commander.secureport && commander.certfile !== undefined && commander.privfile !== undefined) {
if (commander.wssecureport && commander.wscertfile !== undefined && commander.wsprivfile !== undefined) {
console.log("Starting secure websocket server");
wsServer.StartSecureServer(commander.certfile,
commander.privfile,
commander.secureport,
wsServer.StartSecureServer(commander.wscertfile,
commander.wsprivfile,
commander.wssecureport,
host);
console.log(`Secure server listening on port ${commander.secureport}`);
} else if (commander.insecureport) {
console.log(`Secure server listening on port ${commander.wssecureport}`);
} else if (commander.wsinsecureport) {
console.log("Starting insecure websocket server");
wsServer.StartInsecureServer(commander.insecureport, host);
console.log(`Insecure server listening on port ${commander.insecureport}`);
wsServer.StartInsecureServer(commander.wsinsecureport, host);
console.log(`Insecure server listening on port ${commander.wsinsecureport}`);
}
this._wsServer = wsServer;
this.InitServer();
Expand Down

0 comments on commit f9d268b

Please sign in to comment.