mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-16 16:28:50 +00:00
Merge pull request #95 from alexgleason/nip11-limitation
Add NIP-11 limitations
This commit is contained in:
@ -56,6 +56,11 @@ void RelayServer::runWebsocket(ThreadPool<MsgWebsocket>::Thread &thr) {
|
|||||||
{ "supported_nips", supportedNips },
|
{ "supported_nips", supportedNips },
|
||||||
{ "software", "git+https://github.com/hoytech/strfry.git" },
|
{ "software", "git+https://github.com/hoytech/strfry.git" },
|
||||||
{ "version", APP_GIT_VERSION },
|
{ "version", APP_GIT_VERSION },
|
||||||
|
{ "limitation", tao::json::value({
|
||||||
|
{ "max_message_length", cfg().relay__maxWebsocketPayloadSize },
|
||||||
|
{ "max_subscriptions", cfg().relay__maxSubsPerConnection },
|
||||||
|
{ "max_limit", cfg().relay__maxFilterLimit },
|
||||||
|
}) },
|
||||||
});
|
});
|
||||||
|
|
||||||
if (cfg().relay__info__name.size()) nip11["name"] = cfg().relay__info__name;
|
if (cfg().relay__info__name.size()) nip11["name"] = cfg().relay__info__name;
|
||||||
|
Reference in New Issue
Block a user