WIP: replace the backend address related fields/API from udp config, move them to backend udp

This commit is contained in:
2025-05-13 17:03:26 +10:00
parent 72745cf268
commit b645f2b6bd
5 changed files with 43 additions and 45 deletions

View File

@@ -18,7 +18,6 @@ package config
import (
"fmt"
"net"
"time"
"gitea.suyono.dev/suyono/netbounce/abstract"
@@ -68,15 +67,3 @@ func (u udpModule) Backend() string {
func (u udpModule) Timeout() time.Duration {
return u.config.Timeout
}
func (u udpModule) BackendAddr() net.Addr {
return udpBackendAddr(u)
}
func (a udpBackendAddr) Network() string {
return "udp"
}
func (a udpBackendAddr) String() string {
return a.config.Backend
}