diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-11-01 19:46:07 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-11-01 19:46:07 +0100 |
commit | b65c27aaf7f6ea193d8f3bbf6fe4220f16219e06 (patch) | |
tree | e25975ee13ad96714e8cb1f8027c95b3a22ad113 /server.js | |
parent | 763381deafebc660657ff175210a9585962ed9c4 (diff) | |
download | PeerTube-b65c27aaf7f6ea193d8f3bbf6fe4220f16219e06.tar.gz PeerTube-b65c27aaf7f6ea193d8f3bbf6fe4220f16219e06.tar.zst PeerTube-b65c27aaf7f6ea193d8f3bbf6fe4220f16219e06.zip |
Server: check the host key is not present in configurations
The parameter was renamed to hostname
Diffstat (limited to 'server.js')
-rw-r--r-- | server.js | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -26,9 +26,14 @@ database.connect() | |||
26 | // ----------- Checker ----------- | 26 | // ----------- Checker ----------- |
27 | const checker = require('./server/initializers/checker') | 27 | const checker = require('./server/initializers/checker') |
28 | 28 | ||
29 | const miss = checker.checkConfig() | 29 | const missed = checker.checkMissedConfig() |
30 | if (miss.length !== 0) { | 30 | if (missed.length !== 0) { |
31 | throw new Error('Miss some configurations keys : ' + miss) | 31 | throw new Error('Miss some configurations keys : ' + missed) |
32 | } | ||
33 | |||
34 | const errorMessage = checker.checkConfig() | ||
35 | if (errorMessage !== null) { | ||
36 | throw new Error(errorMessage) | ||
32 | } | 37 | } |
33 | 38 | ||
34 | // ----------- PeerTube modules ----------- | 39 | // ----------- PeerTube modules ----------- |