mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
golang platform is darwin not macos
This commit is contained in:
parent
60837104ca
commit
1a53c50da6
@ -39,7 +39,7 @@ func DnsServers() []string {
|
|||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "linux":
|
case "linux":
|
||||||
return dnsLinux()
|
return dnsLinux()
|
||||||
case "macos":
|
case "darwin":
|
||||||
return dnsMacOS()
|
return dnsMacOS()
|
||||||
default:
|
default:
|
||||||
return []string{runtime.GOOS}
|
return []string{runtime.GOOS}
|
||||||
|
@ -27,7 +27,7 @@ func FirewallState() string {
|
|||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "linux":
|
case "linux":
|
||||||
return firewallStateLinux()
|
return firewallStateLinux()
|
||||||
case "macos":
|
case "darwin":
|
||||||
return firewallStateMacOS()
|
return firewallStateMacOS()
|
||||||
default:
|
default:
|
||||||
return ""
|
return ""
|
||||||
@ -49,7 +49,7 @@ func FirewallStealthState() string {
|
|||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "linux":
|
case "linux":
|
||||||
return firewallStealthStateLinux()
|
return firewallStealthStateLinux()
|
||||||
case "macos":
|
case "darwin":
|
||||||
return firewallStealthStateMacOS()
|
return firewallStealthStateMacOS()
|
||||||
default:
|
default:
|
||||||
return ""
|
return ""
|
||||||
|
@ -45,7 +45,7 @@ func LoggedInUsers() []string {
|
|||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "linux":
|
case "linux":
|
||||||
return loggedInUsersLinux()
|
return loggedInUsersLinux()
|
||||||
case "macos":
|
case "darwin":
|
||||||
return loggedInUsersMacOs()
|
return loggedInUsersMacOs()
|
||||||
default:
|
default:
|
||||||
return []string{}
|
return []string{}
|
||||||
|
@ -32,7 +32,7 @@ func WifiEncryption() string {
|
|||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "linux":
|
case "linux":
|
||||||
return wifiEncryptionLinux()
|
return wifiEncryptionLinux()
|
||||||
case "macos":
|
case "darwin":
|
||||||
return wifkEncryptionMacOS()
|
return wifkEncryptionMacOS()
|
||||||
default:
|
default:
|
||||||
return ""
|
return ""
|
||||||
@ -58,7 +58,7 @@ func WifiName() string {
|
|||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "linux":
|
case "linux":
|
||||||
return wifiNameLinux()
|
return wifiNameLinux()
|
||||||
case "macos":
|
case "darwin":
|
||||||
return wifiNameMacOS()
|
return wifiNameMacOS()
|
||||||
default:
|
default:
|
||||||
return ""
|
return ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user