Permalink
Browse files

Anchor regexp to prevent it from misfiring

  • Loading branch information...
1 parent fc072a0 commit dcdd72c4bfb6da5da0be7b7bad1eac82e3bb1891 @smfreegard smfreegard committed Jan 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 net_utils.js
View
@@ -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) {

0 comments on commit dcdd72c

Please sign in to comment.