new: net.sniffer.interface parameter to sniff from a different interface

This commit is contained in:
evilsocket 2025-03-27 07:47:30 +01:00
commit 69b3daa5b9
3 changed files with 21 additions and 2 deletions

View file

@ -194,7 +194,9 @@ func (s *Session) Close() {
}
}
s.Firewall.Restore()
if s.Firewall != nil {
s.Firewall.Restore()
}
if *s.Options.EnvFile != "" {
envFile, _ := fs.Expand(*s.Options.EnvFile)