Improve socksaddr
This commit is contained in:
@@ -15,7 +15,7 @@ func NewIPVersionItem(isIPv6 bool) *IPVersionItem {
|
||||
}
|
||||
|
||||
func (r *IPVersionItem) Match(metadata *adapter.InboundContext) bool {
|
||||
return metadata.Destination.IsIP() && metadata.Destination.Family().IsIPv6() == r.isIPv6
|
||||
return metadata.Destination.IsIP() && metadata.Destination.IsIPv6() == r.isIPv6
|
||||
}
|
||||
|
||||
func (r *IPVersionItem) String() string {
|
||||
|
||||
Reference in New Issue
Block a user