summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/index.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/index.ts b/src/index.ts
index 91d998f191..4ecc2c016f 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -140,6 +140,11 @@ async function init(): Promise<Config> {
configLogger.succ('Loaded');
+ if (config.port == null) {
+ Logger.error('The port is not configured. Please configure port.');
+ process.exit(1);
+ }
+
if (process.platform === 'linux' && !isRoot() && config.port < 1024) {
Logger.error('You need root privileges to listen on port below 1024 on Linux');
process.exit(1);