mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
new: implemented tcp.proxy (closes #33)
This commit is contained in:
parent
0f8be49beb
commit
129f87f8f9
7 changed files with 410 additions and 78 deletions
|
@ -36,7 +36,7 @@ type HTTPProxy struct {
|
|||
Server *http.Server
|
||||
Redirection *firewall.Redirection
|
||||
Proxy *goproxy.ProxyHttpServer
|
||||
Script *ProxyScript
|
||||
Script *HttpProxyScript
|
||||
CertFile string
|
||||
KeyFile string
|
||||
|
||||
|
@ -147,7 +147,7 @@ func (p *HTTPProxy) Configure(address string, proxyPort int, httpPort int, scrip
|
|||
p.Address = address
|
||||
|
||||
if scriptPath != "" {
|
||||
if err, p.Script = LoadProxyScript(scriptPath, p.sess); err != nil {
|
||||
if err, p.Script = LoadHttpProxyScript(scriptPath, p.sess); err != nil {
|
||||
return err
|
||||
} else {
|
||||
log.Debug("Proxy script %s loaded.", scriptPath)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue