fix: revert previous change on IsValid() function; add validation in getUoTConnection();

This commit is contained in:
cty123 authored and yuhan6665 committed 2023-07-19 15:53:01 -04:00
1 parent 2df418abf1
commit 7aeca33729
2 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -113,7 +113,7 @@ func (d Destination) String() string {
// IsValid returns true if this Destination is valid.
func (d Destination) IsValid() bool {
return d.Address != nil && d.Network != Network_Unknown
return d.Network != Network_Unknown
}
// AsDestination converts current Endpoint into Destination.