Example #1
0
 public override string ToString()
 {
     if (RemoteHost.IsNullOrWhiteSpace())
     {
         return($"UDP {LocalHost}:{LocalPort}");
     }
     else
     {
         return($"UDP {LocalHost}:{LocalPort}=>{RemoteHost}:{RemotePort}");
     }
     //return $"udp://{LocalHost}:{LocalPort}?rhost={RemoteHost}&rport={RemotePort}";
 }