diff options
| author | kanadeko <[email protected]> | 2017-01-14 18:13:58 -0300 |
|---|---|---|
| committer | kanadeko <[email protected]> | 2017-01-14 18:13:58 -0300 |
| commit | b81cf72ac41f61e48a86d699e12fcfc327cefb14 (patch) | |
| tree | c64cdd3d6df48a1969148f7b0fca2cbd60568ded /lolisafe.js | |
| parent | Update config.sample.js (diff) | |
| download | host.fuwn.me-b81cf72ac41f61e48a86d699e12fcfc327cefb14.tar.xz host.fuwn.me-b81cf72ac41f61e48a86d699e12fcfc327cefb14.zip | |
Changed from ip whitelist to token based auth
Diffstat (limited to 'lolisafe.js')
| -rw-r--r-- | lolisafe.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lolisafe.js b/lolisafe.js index fdc7769..2e9135d 100644 --- a/lolisafe.js +++ b/lolisafe.js @@ -30,4 +30,7 @@ safe.use(function (err, req, res, next) { res.status(500).end() }) -safe.listen(config.port, () => console.log(`loli-safe started on port ${config.port}`))
\ No newline at end of file +safe.listen(config.port, () => console.log(`loli-safe started on port ${config.port}`)) + +if(config.TOKEN !== '') console.log('Use the following token as the \'auth\' header in your requests to the API: ' + config.TOKEN) +else console.log('Running lolisafe in public mode. No token required.')
\ No newline at end of file |