mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-12 22:42:18 +00:00
openbsd release
This commit is contained in:
3 files changed
+9
-1
No files matched your search
@@ -11,6 +11,7 @@ const (
|
||||
MacOS = GoOS("darwin")
|
||||
Linux = GoOS("linux")
|
||||
FreeBSD = GoOS("freebsd")
|
||||
OpenBSD = GoOS("openbsd")
|
||||
UnknownOS = GoOS("unknown")
|
||||
)
|
||||
|
||||
@@ -39,6 +40,9 @@ func parseOS(rawOS string) GoOS {
|
||||
if osStr == "freebsd" {
|
||||
return FreeBSD
|
||||
}
|
||||
if osStr == "openbsd" {
|
||||
return OpenBSD
|
||||
}
|
||||
return UnknownOS
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user