From abc8ed4df0dbc819de8f06498d6faf5c88db7aea Mon Sep 17 00:00:00 2001 From: yaling888 <73897884+yaling888@users.noreply.github.com> Date: Wed, 13 Apr 2022 05:51:24 +0800 Subject: [PATCH] Chore: hijack traffic destined for port 80 to mitm proxy server by default --- adapter/outbound/mitm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adapter/outbound/mitm.go b/adapter/outbound/mitm.go index 80577cd9..faa04a4c 100644 --- a/adapter/outbound/mitm.go +++ b/adapter/outbound/mitm.go @@ -30,7 +30,7 @@ func (d *Mitm) DialContext(ctx context.Context, metadata *C.Metadata, _ ...diale return nil, errIgnored } - if MiddlemanRewriteHosts.Search(metadata.String()) == nil { + if MiddlemanRewriteHosts.Search(metadata.String()) == nil && metadata.DstPort != "80" { return nil, errIgnored }