Chore: hijack traffic destined for port 80 to mitm proxy server by default
This commit is contained in:
parent
643f1ae970
commit
abc8ed4df0
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user