We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2df418a commit 7aeca33Copy full SHA for 7aeca33
app/proxyman/outbound/uot.go
@@ -11,6 +11,9 @@ import (
11
)
12
13
func (h *Handler) getUoTConnection(ctx context.Context, dest net.Destination) (stat.Connection, error) {
14
+ if dest.Address == nil {
15
+ return nil, newError("nil destination address")
16
+ }
17
if !dest.Address.Family().IsDomain() {
18
return nil, os.ErrInvalid
19
}
common/net/destination.go
@@ -113,7 +113,7 @@ func (d Destination) String() string {
113
114
// IsValid returns true if this Destination is valid.
115
func (d Destination) IsValid() bool {
116
- return d.Address != nil && d.Network != Network_Unknown
+ return d.Network != Network_Unknown
117
118
119
// AsDestination converts current Endpoint into Destination.
0 commit comments