mirror of
https://github.com/bettercap/bettercap
synced 2025-07-12 08:07:00 -07:00
some progress (ref #154)
This commit is contained in:
parent
62112b0ae4
commit
d8223d9579
2 changed files with 235 additions and 12 deletions
|
@ -60,7 +60,7 @@ func NewHTTPProxy(s *session.Session) *HTTPProxy {
|
|||
Name: "http.proxy",
|
||||
Proxy: goproxy.NewProxyHttpServer(),
|
||||
sess: s,
|
||||
stripper: NewSSLStripper(false),
|
||||
stripper: NewSSLStripper(s, false),
|
||||
isTLS: false,
|
||||
Server: nil,
|
||||
}
|
||||
|
@ -109,7 +109,7 @@ func (p *HTTPProxy) doProxy(req *http.Request) bool {
|
|||
func (p *HTTPProxy) Configure(address string, proxyPort int, httpPort int, scriptPath string, stripSSL bool) error {
|
||||
var err error
|
||||
|
||||
p.stripper.Enabled = stripSSL
|
||||
p.stripper.Enable(stripSSL)
|
||||
p.Address = address
|
||||
|
||||
if scriptPath != "" {
|
||||
|
@ -296,7 +296,7 @@ func (p *HTTPProxy) Start() {
|
|||
var err error
|
||||
|
||||
strip := core.Yellow("enabled")
|
||||
if p.stripper.Enabled == false {
|
||||
if p.stripper.Enabled() == false {
|
||||
strip = core.Dim("disabled")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue