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

This commit is contained in:
Zoltán Papp
2025-02-17 15:47:20 +01:00
parent ffe74365a8
commit 1f088b7e69
6 changed files with 80 additions and 29 deletions
+4
View File
@@ -69,6 +69,10 @@ func (p *ProxyWrapper) Pause() {
p.pausedMu.Unlock()
}
func (p *ProxyWrapper) RedirectTo(endpoint *net.UDPAddr) {
// todo implement me
}
// CloseConn close the remoteConn and automatically remove the conn instance from the map
func (e *ProxyWrapper) CloseConn() error {
if e.cancel == nil {