Extend the proxy interface with RedirectTo function and implement it in Bind proxy

This commit is contained in:
Zoltán Papp
2025-02-16 21:50:35 +01:00
parent ffe74365a8
commit 1f088b7e69
6 changed files with 80 additions and 29 deletions

View File

@@ -95,6 +95,10 @@ func (p *WGUDPProxy) Pause() {
p.pausedMu.Unlock()
}
func (p *WGUDPProxy) RedirectTo(endpoint *net.UDPAddr) {
// todo implement me
}
// CloseConn close the localConn
func (p *WGUDPProxy) CloseConn() error {
if p.cancel == nil {