mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 10:46:57 -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
|
@ -23,6 +23,10 @@ func NewEnvironment() *Environment {
|
|||
return env
|
||||
}
|
||||
|
||||
func (env *Environment) Storage() *map[string]string {
|
||||
return &env.storage
|
||||
}
|
||||
|
||||
func (env *Environment) Has(name string) bool {
|
||||
env.lock.Lock()
|
||||
defer env.lock.Unlock()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue