Open gurland opened 6 years ago
xkeys: Checks if a key, received on user authentication, is valid. On startup, it is trying to read file "keys.store":
-- content of keys.store
return {
"some-secret-key",
"another-secret-key",
}
or a lua function that checks if a given key is valid:
-- content of keys.store
return function (key)
if key == "some-secret-key" then
return true
else
return false
end
end
One of these keys must be typed in the cossacks-3 authentication form for successful login.
xadmin: Implements a telnet admin console. Can be enabled in config.store:
-- content of config.store
return {
admin = {
host = "127.0.0.1",
port = 12345,
},
}
There is no authorization, so better to restrict access only to a localhost. To connect, open a terminal and execute telnet 127.0.0.1 12345
. When connected, type help
to see the list of available commands.
xecho:
Simple UDP server, replying back to incoming broadcast requests. Used by tools/c3servers.wlua to find Sich servers in the local network. Enabled by default, to disable add echo = false
into config.
What are those modules? How to use it or how to work with it? In current release I'm getting this traceback: