Fix IPV6 detection

This commit is contained in:
Manuel de Brito Fontes 2018-08-06 12:13:18 -04:00 committed by Manuel Alejandro de Brito Fontes
parent a68820808a
commit 123ffc0c38
No known key found for this signature in database
GPG key ID: 786136016A8BA02A
3 changed files with 34 additions and 3 deletions

View file

@ -58,3 +58,10 @@ func TestIsPortAvailable(t *testing.T) {
t.Fatalf("expected port %v to not be available", p)
}
}
func TestIsIPv6Enabled(t *testing.T) {
isEnabled := IsIPv6Enabled()
if !isEnabled {
t.Fatalf("expected IPV6 be enabled")
}
}