mirror of
https://github.com/mikedilger/chorus.git
synced 2026-08-01 07:21:39 +00:00
Allow 10050 relay lists just like 10002
This commit is contained in:
parent
b3a726695f
commit
fd0f78673d
@ -455,7 +455,9 @@ async fn screen_incoming_event(
|
||||
}
|
||||
|
||||
// Accept relay lists from anybody
|
||||
if event.kind() == Kind::from(10002) && GLOBALS.config.read().serve_relay_lists {
|
||||
if GLOBALS.config.read().serve_relay_lists
|
||||
&& (event.kind() == Kind::from(10002) || event.kind() == Kind::from(10050))
|
||||
{
|
||||
return Ok(true);
|
||||
}
|
||||
|
||||
@ -508,7 +510,9 @@ pub fn screen_outgoing_event(
|
||||
}
|
||||
|
||||
// Allow Relay Lists
|
||||
if event.kind() == Kind::from(10002) && GLOBALS.config.read().serve_relay_lists {
|
||||
if GLOBALS.config.read().serve_relay_lists
|
||||
&& (event.kind() == Kind::from(10002) || event.kind() == Kind::from(10050))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user