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:
parent
13a79a8962
commit
f19f164773
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue