mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-12-01 15:46:50 +00:00
Chore: hijack traffic destined for port 80 to mitm proxy server by default
This commit is contained in:
1 parent
643f1ae970
commit
abc8ed4df0
1 file changed
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user