Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Anchor regexp to prevent it from misfiring

  • Loading branch information...
commit dcdd72c4bfb6da5da0be7b7bad1eac82e3bb1891 1 parent fc072a0
@smfreegard smfreegard authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  net_utils.js
View
2  net_utils.js
@@ -4,7 +4,7 @@ var config = require('./config');
var isIPv4 = require('net').isIPv4;
// Regexp to match private IPv4 ranges
-var re_private_ipv4 = /(?:10|127|169\.254|172\.(?:1[6-9]|2[0-9]|3[01])|192\.168)\..*/;
+var re_private_ipv4 = /^(?:10|127|169\.254|172\.(?:1[6-9]|2[0-9]|3[01])|192\.168)\..*/;
var top_level_tlds = {};
config.get('top-level-tlds','list').forEach(function (tld) {
Please sign in to comment.
Something went wrong with that request. Please try again.