Skip to content

Commit

Permalink
listenOn: Disable IP parsing to allow the usage of FQDNs
Browse files Browse the repository at this point in the history
  • Loading branch information
David Pineau committed Feb 22, 2017
1 parent 6bce24a commit 374baab
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/Config.js
Original file line number Diff line number Diff line change
@@ -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';

Expand Down Expand Up @@ -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 });
Expand Down

0 comments on commit 374baab

Please sign in to comment.