go/access: detect WSL differently
This commit is contained in:
parent
7f587564de
commit
a4c6ad17dc
1 changed files with 1 additions and 5 deletions
|
@ -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 (
|
||||
|
|
Loading…
Reference in a new issue