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

Commit

Permalink
Merge pull request #2 from MirrorDM/master
Browse files Browse the repository at this point in the history
handle ipv6 address.
  • Loading branch information
blackgear committed Apr 30, 2015
2 parents eb76647 + dbc9769 commit c0daf87
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 c0daf87

Please sign in to comment.