Fix: invert should resolve ip (#836)

This commit is contained in:
Kr328 2020-07-27 13:47:00 +08:00 committed by GitHub
parent 6c5f23f552
commit 6532947e71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -289,7 +289,7 @@ func handleTCPConn(localConn C.ServerAdapter) {
} }
func shouldResolveIP(rule C.Rule, metadata *C.Metadata) bool { func shouldResolveIP(rule C.Rule, metadata *C.Metadata) bool {
return !rule.ShouldResolveIP() && metadata.Host != "" && metadata.DstIP == nil return rule.ShouldResolveIP() && metadata.Host != "" && metadata.DstIP == nil
} }
func match(metadata *C.Metadata) (C.Proxy, C.Rule, error) { func match(metadata *C.Metadata) (C.Proxy, C.Rule, error) {