mirror of
https://github.com/bettercap/bettercap
synced 2025-08-21 14:03:17 -07:00
Re-run gofmt -s after modifications
This commit is contained in:
parent
e91d0cb63c
commit
d80fef3ef9
11 changed files with 30 additions and 30 deletions
|
@ -122,7 +122,7 @@ func (p *HTTPProxy) Configure(address string, proxyPort int, httpPort int, scrip
|
|||
data, err := ioutil.ReadFile(jsToInject)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
jsToInject = string(data)
|
||||
}
|
||||
|
||||
|
|
|
@ -273,7 +273,7 @@ func (s *SSLStripper) isMaxRedirs(hostname string) bool {
|
|||
delete(s.redirs, hostname)
|
||||
return true
|
||||
}
|
||||
// increment
|
||||
// increment
|
||||
s.redirs[hostname]++
|
||||
} else {
|
||||
// start tracking redirections
|
||||
|
|
|
@ -122,11 +122,11 @@ func (d *Discovery) Show(by string, expr string) (err error) {
|
|||
}
|
||||
|
||||
switch by {
|
||||
case "seen" :
|
||||
case "seen":
|
||||
sort.Sort(BySeenSorter(targets))
|
||||
case "sent" :
|
||||
case "sent":
|
||||
sort.Sort(BySentSorter(targets))
|
||||
case "rcvd" :
|
||||
case "rcvd":
|
||||
sort.Sort(ByRcvdSorter(targets))
|
||||
default:
|
||||
sort.Sort(ByAddressSorter(targets))
|
||||
|
|
|
@ -84,7 +84,7 @@ func (w *WiFiModule) getRow(station *network.Station) ([]string, bool) {
|
|||
recvd,
|
||||
seen,
|
||||
}, include
|
||||
}
|
||||
}
|
||||
// this is ugly, but necessary in order to have this
|
||||
// method handle both access point and clients
|
||||
// transparently
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue