diff --git a/config.js b/config.js index eb36c35..dcc4a65 100644 --- a/config.js +++ b/config.js @@ -6,7 +6,8 @@ module.exports = { outgoingWebhookServer: { port: 666, domain: 'your.webhook.server.com', - hookPath: '/irc-echo' + hookPath: '/irc-echo', + localhost: 'localhost' }, echoChannel: '#irc-echo', botName: 'IRCBot', diff --git a/lib/slack.js b/lib/slack.js index 22758e5..b491a9b 100644 --- a/lib/slack.js +++ b/lib/slack.js @@ -53,7 +53,7 @@ module.exports = { /* Slack Outgoing Web Hook listening server */ -var server = new Hapi.Server('localhost', config.slack.outgoingWebhookServer.port, { +var server = new Hapi.Server(config.slack.outgoingWebhookServer.localhost, config.slack.outgoingWebhookServer.port, { location: config.slack.outgoingWebhookServer.domain, });