Skip to content

Commit

Permalink
sysproxy: status for socks5
Browse files Browse the repository at this point in the history
  • Loading branch information
5aaee9 committed Apr 20, 2024
1 parent e5da98f commit 6b310f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/proxy/sysproxy/sysproxy_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (p *DarwinSystemProxy) Status() (*SystemProxyStatus, error) {
info := strings.ReplaceAll(string(output), " ", "")

status := new(SystemProxyStatus)
status.State = strings.Contains(info, "HTTPEnable:1") || strings.Contains(info, "HTTPSEnable:1")
status.State = strings.Contains(info, "HTTPEnable:1") || strings.Contains(info, "HTTPSEnable:1") || strings.Contains(info, "SOCKSEnable:1")

return status, nil
}
Expand Down

0 comments on commit 6b310f0

Please sign in to comment.