mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
fix: do not show gateway warning if the interface is not connected to any network
This commit is contained in:
parent
ae223d7110
commit
3c798794eb
3 changed files with 13 additions and 4 deletions
|
@ -131,7 +131,11 @@ func (s *Session) setupEnv() {
|
|||
s.Env.Set("gateway.mac", s.Gateway.HwAddress)
|
||||
|
||||
if found, v := s.Env.Get(PromptVariable); !found || v == "" {
|
||||
s.Env.Set(PromptVariable, DefaultPrompt)
|
||||
if s.Interface.IsMonitor() {
|
||||
s.Env.Set(PromptVariable, DefaultPromptMonitor)
|
||||
} else {
|
||||
s.Env.Set(PromptVariable, DefaultPrompt)
|
||||
}
|
||||
}
|
||||
|
||||
dbg := "false"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue