mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 13:33:21 -07:00
new: exposing session environment to proxy scripts
This commit is contained in:
parent
1b3cc9fbca
commit
5b969ffa9e
4 changed files with 20 additions and 5 deletions
|
@ -166,7 +166,7 @@ func (p *HttpProxy) Start() error {
|
|||
} else {
|
||||
scriptPath := v.(string)
|
||||
if scriptPath != "" {
|
||||
if err, p.script = LoadProxyScript(scriptPath); err != nil {
|
||||
if err, p.script = LoadProxyScript(scriptPath, p.Session); err != nil {
|
||||
return err
|
||||
} else {
|
||||
log.Debugf("Proxy script %s loaded.", scriptPath)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue