Skip to content

Commit

Permalink
Support more variants of specifying an IPv6 address to listen to
Browse files Browse the repository at this point in the history
  • Loading branch information
abh committed Sep 2, 2012
1 parent af7ecc1 commit e7f96eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions geodns.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ func main() {
strings.LastIndex(host, "]") == len(host)-1:
ip = host[1 : len(host)-1]
port = ""
case strings.Contains(err.Error(), "too many colons in address"):
// a:b::c
ip = host
port = ""
default:
log.Fatalf("Could not parse %s: %s\n", host, err)
}
Expand Down

0 comments on commit e7f96eb

Please sign in to comment.