diff --git a/go/access/access.go b/go/access/access.go index 7cff4440d9..1850fdef76 100644 --- a/go/access/access.go +++ b/go/access/access.go @@ -42,12 +42,8 @@ func currentUsername() string { } func shouldRequirePresence() bool { - hn, err := os.Hostname() - if err != nil { - log.Fatalf("getting hostname: %v", err) - } // WSL2 makes things hard. - return hn != "PORCOROSSO" + return os.Getenv("WSL_DISTRO_NAME") == "" } const (