├── icon.ico ├── proxyreset.go ├── README.md └── .github └── workflows └── build.yml /icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ircfspace/proxyReset/main/icon.ico -------------------------------------------------------------------------------- /proxyreset.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "os/exec" 6 | ) 7 | 8 | func main() { 9 | cmd := exec.Command("reg", "add", "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings", "/v", "ProxyEnable", "/t", "REG_DWORD", "/d", "0", "/f") 10 | err := cmd.Run() 11 | if err != nil { 12 | fmt.Println("Error disabling proxy:", err) 13 | return 14 | } 15 | fmt.Println("Proxy successfully disabled.") 16 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ProxyReset 2 | 3 | ProxyReset is a lightweight tool written in Go for Windows. It allows users to quickly disable the proxy settings on their system without requiring administrator privileges. This tool works across various versions of Windows and is available for different architectures, including `ia32`, `x64`, and `arm64`. 4 | 5 | ## Features: 6 | - Disables the system proxy settings. 7 | - No admin privileges required. 8 | - Compatible with 32-bit, 64-bit, and ARM64 Windows systems. 9 | 10 | ## Installation: 11 | Simply download the appropriate executable (`proxy-reset-ia32.exe`, `proxy-reset-x64.exe`, `proxy-reset-arm64.exe`) and run it. 12 | 13 | ## Usage: 14 | Run the executable, and it will immediately disable the proxy settings without any additional prompts. 15 | -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | name: Build ProxyReset Executable 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | 8 | jobs: 9 | build: 10 | runs-on: windows-latest 11 | if: startsWith(github.event.head_commit.message, 'v') 12 | 13 | steps: 14 | - name: Checkout code 15 | uses: actions/checkout@v2 16 | 17 | - name: Set up Go 18 | uses: actions/setup-go@v2 19 | with: 20 | go-version: '1.18' 21 | 22 | - name: Build and zip (ia32) 23 | run: | 24 | $env:GOARCH="386" 25 | $env:GOOS="windows" 26 | go build -ldflags="-H windowsgui" -o proxy-reset.exe proxyReset.go 27 | Compress-Archive -Path proxy-reset.exe -DestinationPath proxy-reset-ia32.zip 28 | Rename-Item proxy-reset.exe proxy-reset-ia32.exe 29 | 30 | - name: Build and zip (x64) 31 | run: | 32 | $env:GOARCH="amd64" 33 | $env:GOOS="windows" 34 | go build -ldflags="-H windowsgui" -o proxy-reset.exe proxyReset.go 35 | Compress-Archive -Path proxy-reset.exe -DestinationPath proxy-reset-x64.zip 36 | Rename-Item proxy-reset.exe proxy-reset-x64.exe 37 | 38 | - name: Build and zip (arm64) 39 | run: | 40 | $env:GOARCH="arm64" 41 | $env:GOOS="windows" 42 | go build -ldflags="-H windowsgui" -o proxy-reset.exe proxyReset.go 43 | Compress-Archive -Path proxy-reset.exe -DestinationPath proxy-reset-arm64.zip 44 | Rename-Item proxy-reset.exe proxy-reset-arm64.exe 45 | 46 | - name: Upload to releases 47 | uses: ncipollo/release-action@v1 48 | with: 49 | artifacts: | 50 | proxy-reset-ia32.exe 51 | proxy-reset-ia32.zip 52 | proxy-reset-x64.exe 53 | proxy-reset-x64.zip 54 | proxy-reset-arm64.exe 55 | proxy-reset-arm64.zip 56 | tag: '${{ github.event.head_commit.message }}' 57 | draft: true 58 | --------------------------------------------------------------------------------