Files
instance-setup-stuff/wg/all_proxied/PreDown copy.ps1
Kaushik Narayan R 4495f333d8 bruh moment
whitespace/formatting diff
2026-02-15 16:27:20 -08:00

13 lines
451 B
PowerShell

# WireGuard tunnel details
$wgInterface = Get-NetAdapter -Name $env:WIREGUARD_TUNNEL_NAME
# Delete the default 0.0.0.0/0 route using the interface index
route delete 0.0.0.0 mask 0.0.0.0 0.0.0.0 if $wgInterface.ifIndex
Set-Location "<path>\<to>\3proxy-0.9.4-x64\bin64\"
# Terminate any running instances of 3proxy.exe
# Stop-Process -Name "3proxy" -Force
# prefer taskkill for the /t option to end child processes
taskkill.exe /f /t /im 3proxy.exe