Use Trisia/gosysproxy a cgo bind to control windows proxy(Windows Settings -> Network & Internet -> Proxy -> Manual proxy setup).