mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
balls
This commit is contained in:
parent
81b2683bcf
commit
d6d75ee390
2 changed files with 5 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
package modules
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/evilsocket/bettercap-ng/session"
|
||||
)
|
||||
|
||||
|
@ -36,6 +37,7 @@ func NewHttpProxy(s *session.Session) *HttpProxy {
|
|||
p.AddHandler(session.NewModuleHandler("http.proxy on", "",
|
||||
"Start HTTP proxy.",
|
||||
func(args []string) error {
|
||||
fmt.Printf("\nproxy.start\n")
|
||||
return p.Start()
|
||||
}))
|
||||
|
||||
|
|
|
@ -246,6 +246,7 @@ func (p *HTTPProxy) ConfigureTLS(address string, proxyPort int, httpPort int, sc
|
|||
}
|
||||
|
||||
func (p *HTTPProxy) httpWorker() error {
|
||||
fmt.Printf(" httpWorker\n")
|
||||
p.isRunning = true
|
||||
return p.Server.ListenAndServe()
|
||||
}
|
||||
|
@ -327,7 +328,9 @@ func (p *HTTPProxy) httpsWorker() error {
|
|||
}
|
||||
|
||||
func (p *HTTPProxy) Start() {
|
||||
fmt.Printf("httpproxybase.start\n")
|
||||
go func() {
|
||||
fmt.Printf("httpproxybase.start go routine\n")
|
||||
var err error
|
||||
|
||||
if p.isTLS == true {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue