Skip to content

Commit

Permalink
Fix: invert should resolve ip (#836)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr328 authored Jul 27, 2020
1 parent 6c5f23f commit 6532947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tunnel/tunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ func handleTCPConn(localConn C.ServerAdapter) {
}

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) {
Expand Down

0 comments on commit 6532947

Please sign in to comment.