From 374baabfc709c4f3e8a57a0a614e3f9e13196182 Mon Sep 17 00:00:00 2001 From: David Pineau Date: Wed, 8 Feb 2017 17:20:30 +0100 Subject: [PATCH] listenOn: Disable IP parsing to allow the usage of FQDNs --- lib/Config.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/Config.js b/lib/Config.js index cc331eb271..00a643b93e 100644 --- a/lib/Config.js +++ b/lib/Config.js @@ -1,7 +1,6 @@ import assert from 'assert'; import fs from 'fs'; import path from 'path'; -import { ipCheck } from 'arsenal'; import authDataChecker from './auth/in_memory/checker'; @@ -58,9 +57,6 @@ class Config { item.substr(0, lastColon); // the port should not include the colon const port = item.substr(lastColon + 1); - // parseIp returns as empty object if the address is invalid - assert(Object.keys(ipCheck.parseIp(ipAddress)).length !== 0, - 'bad config: listenOn IP address must be valid'); assert(parseInt(port, 10), 'bad config: listenOn port must be a positive integer'); this.listenOn.push({ ip: ipAddress, port });