Fix: set mitm outbound
This commit is contained in:
parent
8b3e42bf19
commit
72b9b829e9
@ -101,7 +101,11 @@ func SetMode(m TunnelMode) {
|
|||||||
|
|
||||||
// SetMitmOutbound set the MITM outbound
|
// SetMitmOutbound set the MITM outbound
|
||||||
func SetMitmOutbound(outbound C.ProxyAdapter) {
|
func SetMitmOutbound(outbound C.ProxyAdapter) {
|
||||||
|
if outbound != nil {
|
||||||
mitmProxy = A.NewProxy(outbound)
|
mitmProxy = A.NewProxy(outbound)
|
||||||
|
} else {
|
||||||
|
mitmProxy = nil
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Rewrites return all rewrites
|
// Rewrites return all rewrites
|
||||||
|
Reference in New Issue
Block a user