new: exposing session environment to proxy scripts

This commit is contained in:
evilsocket 2018-01-08 01:50:15 +01:00
commit 5b969ffa9e
4 changed files with 20 additions and 5 deletions

View file

@ -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)