From e229ad6e2b7253a8db3da9876794aa220b5314bb Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Tue, 11 Jun 2019 12:52:13 +0100 Subject: [PATCH] Update comments --- src/yggdrasil/api.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/yggdrasil/api.go b/src/yggdrasil/api.go index 9d640997..25f9869c 100644 --- a/src/yggdrasil/api.go +++ b/src/yggdrasil/api.go @@ -398,8 +398,9 @@ func (c *Core) GetNodeInfo(keyString, coordString string, nocache bool) (NodeInf // SetSessionGatekeeper allows you to configure a handler function for deciding // whether a session should be allowed or not. The default session firewall is // implemented in this way. The function receives the public key of the remote -// side, and a boolean which is true if we initiated the session or false if we -// received an incoming session request. +// side and a boolean which is true if we initiated the session or false if we +// received an incoming session request. The function should return true to +// allow the session or false to reject it. func (c *Core) SetSessionGatekeeper(f func(pubkey *crypto.BoxPubKey, initiator bool) bool) { c.sessions.isAllowedMutex.Lock() defer c.sessions.isAllowedMutex.Unlock()