From 2d94268a4e72398b445f318ef5a1acf5ec16f6cb 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 48f60f26c1..bd520e3b04 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 });