1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2024-12-14 12:37:31 +00:00

added flag for allowing empty signature

This commit is contained in:
postmannen 2022-02-03 11:41:46 +01:00
parent 13a79a8962
commit f19f164773

View file

@ -551,6 +551,11 @@ func (p process) messageSubscriberHandler(natsConn *nats.Conn, thisNode string,
// verifySignature
func (p process) verifySignature(m Message) bool {
if p.configuration.AllowEmptySignature {
fmt.Printf(" * verifySignature: AllowEmptySignature set to TRUE\n")
return true
}
fmt.Printf(" * verifySignature, fromNode: %v, method: %v, signature: %v\n", m.FromNode, m.Method, m.ArgSignature)
return true