fix(internal/platform): support freebsd (#445)
See https://github.com/ooni/probe/issues/1696
This commit is contained in:
parent
c3bec9de2a
commit
2e5b4f13dd
2 changed files with 8 additions and 3 deletions
|
|
@ -16,7 +16,9 @@ import "runtime"
|
|||
//
|
||||
// 4. "windows"
|
||||
//
|
||||
// 5. "unknown"
|
||||
// 5. "freebsd"
|
||||
//
|
||||
// 6. "unknown"
|
||||
//
|
||||
// You should use this name to annotate measurements.
|
||||
func Name() string {
|
||||
|
|
@ -30,7 +32,7 @@ func name(goos string) string {
|
|||
//
|
||||
// See https://golang.org/doc/go1.16#darwin
|
||||
switch goos {
|
||||
case "android", "linux", "windows", "ios":
|
||||
case "android", "freebsd", "ios", "linux", "windows":
|
||||
return goos
|
||||
case "darwin":
|
||||
return "macos"
|
||||
|
|
|
|||
Loading…
Reference in a new issue