Created
September 11, 2020 06:38
-
-
Save xquery/b06985c61ddd14cc0cea36952dca1cec to your computer and use it in GitHub Desktop.
it gets weirder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tstest | |
import ( | |
"testing" | |
"net" | |
) | |
func TestOpenIPv6(t *testing.T) { | |
ln, err := net.Listen("tcp6", "[::]:1024") | |
if err != nil { | |
t.Error("IPv6 not available") | |
} | |
ln.Close() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment