mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-10-29 06:31:56 +00:00
fix: revert previous change on IsValid() function; add validation in getUoTConnection();
This commit is contained in:
1 parent
2df418abf1
commit
7aeca33729
2 files changed
+4
-1
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user