mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Merge pull request #492 from duno9/main
Fixed possible error with hosting on port 80 or 443
This commit is contained in:
@@ -3213,7 +3213,6 @@ if (listen && !config.whitelistMode && !config.basicAuthMode) {
|
|||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (true === cliArguments.ssl)
|
if (true === cliArguments.ssl)
|
||||||
https.createServer(
|
https.createServer(
|
||||||
{
|
{
|
||||||
@@ -3221,13 +3220,13 @@ if (true === cliArguments.ssl)
|
|||||||
key: fs.readFileSync(cliArguments.keyPath)
|
key: fs.readFileSync(cliArguments.keyPath)
|
||||||
}, app)
|
}, app)
|
||||||
.listen(
|
.listen(
|
||||||
tavernUrl.port,
|
tavernUrl.port || 443,
|
||||||
tavernUrl.hostname,
|
tavernUrl.hostname,
|
||||||
setupTasks
|
setupTasks
|
||||||
);
|
);
|
||||||
else
|
else
|
||||||
http.createServer(app).listen(
|
http.createServer(app).listen(
|
||||||
tavernUrl.port,
|
tavernUrl.port || 80,
|
||||||
tavernUrl.hostname,
|
tavernUrl.hostname,
|
||||||
setupTasks
|
setupTasks
|
||||||
);
|
);
|
||||||
|
2
src/horde/index.d.ts
vendored
2
src/horde/index.d.ts
vendored
@@ -95,7 +95,7 @@ declare class AIHorde {
|
|||||||
/**
|
/**
|
||||||
* Lookup user details based on their API key.
|
* Lookup user details based on their API key.
|
||||||
* This can be used to verify a user exists
|
* 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
|
* @param options.fields - Array of fields that will be included in the returned data
|
||||||
* @returns UserDetails - The user data of the requested user
|
* @returns UserDetails - The user data of the requested user
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user