mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-12-01 19:06:43 +00:00
15 lines
321 B
Go
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")
|
|
}
|