Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Commit

Permalink
handle ipv6 address.
Browse files Browse the repository at this point in the history
  • Loading branch information
MirrorDM committed Apr 28, 2015
1 parent 88ca3bf commit dbc9769
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mono.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ function FindProxyForURL(url, host) {
return tunnel;
}

if (IP.indexOf(":") >= 0) return direct;

var atom = IP.split(".");
var code = ((atom[1] & 0xff) << 8) | ((atom[2] & 0xff));
var hash = atom[0];
Expand Down

0 comments on commit dbc9769

Please sign in to comment.