mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-09-24 21:55:52 +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 { version, description }: AppPackage = require('../../../package.json');
|
||||||
export const config: AppConfig = require('../../../config.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 = [
|
const INSECURE_RANDOM_VALUES = [
|
||||||
'gfhfdshtrdhgedryhe4t3y5uwjthr',
|
'gfhfdshtrdhgedryhe4t3y5uwjthr',
|
||||||
'sdlfgihsdor8ghor8dgdrgdegrdg',
|
'sdlfgihsdor8ghor8dgdrgdegrdg',
|
||||||
|
|||||||
Reference in New Issue
Block a user