mirror of
https://github.com/go-i2p/go-i2ptunnel.git
synced 2025-07-14 01:34:56 -04:00
Mobile bindings
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user