Skip to content

Commit

Permalink
Fix IPv6 detection
Browse files Browse the repository at this point in the history
  • Loading branch information
rs committed Dec 1, 2024
1 parent c530cef commit 922978c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func main() {

func hasIPv6() bool {
fmt.Println("Testing IPv6 connectivity")
c, err := net.Dial("tcp", "[2620:fe::fe]:80")
c, err := net.Dial("tcp", "[2620:fe::fe]:443")
if c != nil {
c.Close()
}
Expand Down

0 comments on commit 922978c

Please sign in to comment.