mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
Add gofmt -s to the build
This commit is contained in:
parent
e93fe8ec4c
commit
e333df35d4
4 changed files with 35152 additions and 35150 deletions
5
Makefile
5
Makefile
|
@ -3,7 +3,7 @@ PACKAGES=core firewall log modules network packets session tls
|
|||
|
||||
all: deps build
|
||||
|
||||
deps: godep golint gomegacheck
|
||||
deps: godep golint gofmt gomegacheck
|
||||
@dep ensure
|
||||
|
||||
build: resources
|
||||
|
@ -54,3 +54,6 @@ golint:
|
|||
|
||||
gomegacheck:
|
||||
@go get honnef.co/go/tools/cmd/megacheck
|
||||
|
||||
gofmt:
|
||||
gofmt -s -w $(PACKAGES)
|
|
@ -28,7 +28,7 @@ func (s *EventsStream) shouldDumpHttpRequest(req HTTPRequest) bool {
|
|||
return true
|
||||
}
|
||||
// search for interesting headers and cookies
|
||||
for name, _ := range req.Headers {
|
||||
for name := range req.Headers {
|
||||
headerName := strings.ToLower(name)
|
||||
if strings.Contains(headerName, "auth") || strings.Contains(headerName, "token") {
|
||||
return true
|
||||
|
@ -48,7 +48,7 @@ func (s *EventsStream) shouldDumpHttpResponse(res HTTPResponse) bool {
|
|||
return true
|
||||
}
|
||||
// search for interesting headers
|
||||
for name, _ := range res.Headers {
|
||||
for name := range res.Headers {
|
||||
headerName := strings.ToLower(name)
|
||||
if strings.Contains(headerName, "auth") || strings.Contains(headerName, "token") || strings.Contains(headerName, "cookie") {
|
||||
return true
|
||||
|
|
70291
network/manuf.go
70291
network/manuf.go
File diff suppressed because it is too large
Load diff
|
@ -84,7 +84,7 @@ func NewMDNSProbe(from net.IP, from_hw net.HardwareAddr) (error, []byte) {
|
|||
RD: true,
|
||||
OpCode: layers.DNSOpCodeQuery,
|
||||
Questions: []layers.DNSQuestion{
|
||||
layers.DNSQuestion{
|
||||
{
|
||||
Name: []byte("_services._dns-sd._udp.local"),
|
||||
Type: layers.DNSTypePTR,
|
||||
Class: layers.DNSClassIN,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue