Chore: hijack traffic destined for port 80 to mitm proxy server by default

This commit is contained in:
yaling888 2022-04-13 05:51:24 +08:00
parent 643f1ae970
commit abc8ed4df0

View File

@ -30,7 +30,7 @@ func (d *Mitm) DialContext(ctx context.Context, metadata *C.Metadata, _ ...diale
return nil, errIgnored return nil, errIgnored
} }
if MiddlemanRewriteHosts.Search(metadata.String()) == nil { if MiddlemanRewriteHosts.Search(metadata.String()) == nil && metadata.DstPort != "80" {
return nil, errIgnored return nil, errIgnored
} }