mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 20:23:49 +01:00
Check the port is configured (#3251)
This commit is contained in:
parent
6d8ae3d978
commit
0eae76168f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user