Implement redirect logic in UDP proxy

This commit is contained in:
Zoltán Papp
2025-02-17 14:58:01 +01:00
parent 06a17f0eee
commit 4db73a13d7
5 changed files with 213 additions and 27 deletions

View File

@@ -92,7 +92,7 @@ func (p *ProxyBind) Pause() {
p.pausedCond.L.Unlock()
}
func (p *ProxyBind) RedirectTo(endpoint *net.UDPAddr) {
func (p *ProxyBind) RedirectAs(endpoint *net.UDPAddr) {
p.pausedCond.L.Lock()
p.paused = false