mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 13:09:49 -07:00
fix: fixed a bug which prevented -no-colors from working correctly
This commit is contained in:
parent
9d0c7bc405
commit
94ba9b19d1
2 changed files with 10 additions and 1 deletions
10
core/swag.go
10
core/swag.go
|
@ -51,6 +51,16 @@ func InitSwag(disableColors bool) {
|
||||||
BG_YELLOW = ""
|
BG_YELLOW = ""
|
||||||
BG_LBLUE = ""
|
BG_LBLUE = ""
|
||||||
RESET = ""
|
RESET = ""
|
||||||
|
|
||||||
|
LogColors = map[int]string{
|
||||||
|
DEBUG: DIM + FG_BLACK + BG_DGRAY,
|
||||||
|
INFO: FG_WHITE + BG_GREEN,
|
||||||
|
IMPORTANT: FG_WHITE + BG_LBLUE,
|
||||||
|
WARNING: FG_WHITE + BG_YELLOW,
|
||||||
|
ERROR: FG_WHITE + BG_RED,
|
||||||
|
FATAL: FG_WHITE + BG_RED + BOLD,
|
||||||
|
}
|
||||||
|
|
||||||
HasColors = false
|
HasColors = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,6 @@ func (s *EventsStream) viewLogEvent(e session.Event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *EventsStream) viewWiFiEvent(e session.Event) {
|
func (s *EventsStream) viewWiFiEvent(e session.Event) {
|
||||||
|
|
||||||
if strings.HasPrefix(e.Tag, "wifi.ap.") {
|
if strings.HasPrefix(e.Tag, "wifi.ap.") {
|
||||||
ap := e.Data.(*network.AccessPoint)
|
ap := e.Data.(*network.AccessPoint)
|
||||||
vend := ""
|
vend := ""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue