sing-box/common/settings/proxy_windows.go
2022-07-17 17:38:11 +08:00

15 lines
321 B
Go

package settings
import (
F "github.com/sagernet/sing/common/format"
"github.com/sagernet/sing/common/wininet"
)
func ClearSystemProxy() error {
return wininet.ClearSystemProxy()
}
func SetSystemProxy(port uint16, mixed bool) error {
return wininet.SetSystemProxy(F.ToString("http://127.0.0.1:", port), "local")
}