Skip to content

Commit

Permalink
Update serverSecrets reference in legacy monitor (#3697)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmelnikow committed Jul 11, 2019
1 parent 0a276f6 commit 5d20a37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/server/monitor.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const serverSecrets = require('../../lib/server-secrets')
const config = require('config').util.toObject()
const secretIsValid = require('./secret-is-valid')
const RateLimit = require('./rate-limit')
const log = require('./log')
Expand Down Expand Up @@ -58,7 +58,7 @@ function setRoutes({ rateLimit }, server) {
})

server.get('/sys/network', (req, res) => {
res.json({ ips: serverSecrets.shields_ips })
res.json({ ips: config.public.shields_ips })
})

server.ws('/sys/logs', socket => {
Expand Down

0 comments on commit 5d20a37

Please sign in to comment.