mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-09-24 13:55:04 +02:00
Append trailing / to config.host if not present
This commit is contained in:
@@ -58,6 +58,11 @@ export const args = argv as AppArgs;
|
||||
export const { version, description }: AppPackage = require('../../../package.json');
|
||||
export const config: AppConfig = require('../../../config.json');
|
||||
|
||||
// append / to host if the server op forgot it
|
||||
if (!config.host.endsWith('/')) {
|
||||
config.host += '/';
|
||||
}
|
||||
|
||||
const INSECURE_RANDOM_VALUES = [
|
||||
'gfhfdshtrdhgedryhe4t3y5uwjthr',
|
||||
'sdlfgihsdor8ghor8dgdrgdegrdg',
|
||||
|
||||
Reference in New Issue
Block a user