Răsfoiți Sursa

Support Azure login page on WSL 1

The format reported by `/proc/version` differs between versions of WSL;
both report the text "Microsoft", albeit in different cases.

Signed-off-by: James Steele <[email protected]>
James Steele 4 ani în urmă
părinte
comite
cac6bd410a
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      aci/login/helper.go

+ 1 - 1
aci/login/helper.go

@@ -122,7 +122,7 @@ func isWsl() bool {
 		return false
 	}
 
-	return strings.Contains(string(b), "microsoft")
+	return strings.Contains(strings.ToLower(string(b)), "microsoft")
 }
 
 func randomString(prefix string, length int) string {