mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 04:15:54 +02:00
13 lines
237 B
Go
13 lines
237 B
Go
package exprhelpers
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/crowdsecurity/crowdsec/pkg/appsec/ja4h"
|
|
)
|
|
|
|
// JA4H(req *http.Request) string
|
|
func JA4H(params ...any) (any, error) {
|
|
req := params[0].(*http.Request)
|
|
return ja4h.JA4H(req), nil
|
|
}
|