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
|
||||
func SetMitmOutbound(outbound C.ProxyAdapter) {
|
||||
mitmProxy = A.NewProxy(outbound)
|
||||
if outbound != nil {
|
||||
mitmProxy = A.NewProxy(outbound)
|
||||
} else {
|
||||
mitmProxy = nil
|
||||
}
|
||||
}
|
||||
|
||||
// Rewrites return all rewrites
|
||||
|
Reference in New Issue
Block a user