Display connection specific cookies in Erlang -
when setting cookie on node erlang:set_cookie/2
possible set different cookies different nodes. there way display, cookie set node?
calling erlang:get_cookie/1
not display information, "default" cookie displayed.
example:
start nodea cookie foo
, nodeb cookie bar
. @ nodea set cookie use when communicating nodeb bar
calling erlang:set_cookie(nodeb, bar)
. pinging works fine, no "connection attempt disallowed node..." errors. calling erlang:get_cookie()
on nodea still shows "default" cookie foo
. how can find cookie set nodeb?
it doesn't seem documented, auth:get_cookie/1
want. case, can call auth:get_cookie(nodeb)
on nodea
.
Comments
Post a Comment