MCPcopy
hub / github.com/bettercap/bettercap / Start

Method Start

modules/http_proxy/http_proxy_base.go:413–434  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

411}
412
413func (p *HTTPProxy) Start() {
414 go func() {
415 var err error
416
417 strip := tui.Yellow("enabled")
418 if !p.Stripper.Enabled() {
419 strip = tui.Dim("disabled")
420 }
421
422 p.Info("started on %s (sslstrip %s)", p.Server.Addr, strip)
423
424 if p.isTLS {
425 err = p.httpsWorker()
426 } else {
427 err = p.httpWorker()
428 }
429
430 if err != nil && err.Error() != "http: Server closed" {
431 p.Fatal("%s", err)
432 }
433 }()
434}
435
436func (p *HTTPProxy) Stop() error {
437 if p.Script != nil {

Callers

nothing calls this directly

Calls 6

InfoMethod · 0.95
httpsWorkerMethod · 0.95
httpWorkerMethod · 0.95
FatalMethod · 0.95
EnabledMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected