Mobile bindings

This commit is contained in:
eyedeekay
2025-02-07 17:01:34 -05:00
parent 1441220c7c
commit a0d148ad79
11 changed files with 50 additions and 21 deletions

View File

@ -71,8 +71,9 @@ func (u *UDPServer) Error() error {
}
// Get the tunnel's local host:port
func (u *UDPServer) LocalAddress() (string, string, error) {
return u.TunnelConfig.Interface, strconv.Itoa(u.TunnelConfig.Port), nil
func (u *UDPServer) LocalAddress() (string, error) {
addr := net.JoinHostPort(u.TunnelConfig.Interface, strconv.Itoa(u.TunnelConfig.Port))
return addr, nil
}
// Get the tunnel's name