Agent Mesh
Go a2aa2a-protocolagent-meshagentic-aiinferencemcpmeshmesh-networknetwork-securitynetworking-aip2p-network
validate the original message sender
Antonio Ojea80ca15a7ce16
diff --git a/cmd/sam-node/node.go b/cmd/sam-node/node.goindex 88ab3e32..340aacfc 100644--- a/cmd/sam-node/node.go+++ b/cmd/sam-node/node.go@@ -227,7 +227,8 @@ func (n *SamNode) listenForHubEvents(ctx context.Context) {continue}- if msg.ReceivedFrom != n.HubPeerID {+ // use the original author not the one that just relay the message+ if msg.GetFrom() != n.HubPeerID {logger.Warnf("[Mesh Event] Ignored event from non-hub peer: %s", msg.ReceivedFrom)continue}