mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-06-12 11:29:36 +03:00
fix: revert previous change on IsValid() function; add validation in getUoTConnection();
This commit is contained in:
@ -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