mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 21:43:18 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
6af2de6de9
commit
76e094f687
8 changed files with 733 additions and 679 deletions
11
modules/zerogod/zerogod_ipp_unhandled.go
Normal file
11
modules/zerogod/zerogod_ipp_unhandled.go
Normal file
|
@ -0,0 +1,11 @@
|
|||
package zerogod
|
||||
|
||||
import "github.com/phin1x/go-ipp"
|
||||
|
||||
func ippOnUnhandledRequest(ctx *HandlerContext, ipp_req *ipp.Request, ipp_op_name string) {
|
||||
ctx.mod.Warning("unhandled request from %v: operation=%s - %++v", ctx.client.RemoteAddr(), ipp_op_name, *ipp_req)
|
||||
|
||||
ippSendResponse(ctx, ipp.NewResponse(
|
||||
ipp.StatusErrorOperationNotSupported,
|
||||
ipp_req.RequestId))
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue