mirror of
https://github.com/bettercap/bettercap.git
synced 2024-11-08 06:30:13 -08:00
12 lines
363 B
Go
12 lines
363 B
Go
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))
|
|
}
|