diff --git a/server.js b/server.js index ee6890b4f..5a2366433 100644 --- a/server.js +++ b/server.js @@ -3213,7 +3213,6 @@ if (listen && !config.whitelistMode && !config.basicAuthMode) { process.exit(1); } } - if (true === cliArguments.ssl) https.createServer( { @@ -3221,13 +3220,13 @@ if (true === cliArguments.ssl) key: fs.readFileSync(cliArguments.keyPath) }, app) .listen( - tavernUrl.port, + tavernUrl.port || 443, tavernUrl.hostname, setupTasks ); else http.createServer(app).listen( - tavernUrl.port, + tavernUrl.port || 80, tavernUrl.hostname, setupTasks ); diff --git a/src/horde/index.d.ts b/src/horde/index.d.ts index 6c6283f21..5c86a2dc2 100644 --- a/src/horde/index.d.ts +++ b/src/horde/index.d.ts @@ -95,7 +95,7 @@ declare class AIHorde { /** * Lookup user details based on their API key. * This can be used to verify a user exists - * @param options.token - The token of the user; If none given the default from the contructor is used + * @param options.token - The token of the user; If none given the default from the constructor is used * @param options.fields - Array of fields that will be included in the returned data * @returns UserDetails - The user data of the requested user */