feat(NIP-42): extend authz to NIP-44 DMs and NIP-59 gift wraps

This commit is contained in:
rorp
2023-08-09 13:11:03 -07:00
committed by Greg Heartsfield
parent 23aa6e7313
commit b1957ab2b1
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ pub struct RelayInfo {
/// Convert an Info configuration into public Relay Info
impl From<Settings> for RelayInfo {
fn from(c: Settings) -> Self {
let mut supported_nips = vec![1, 2, 9, 11, 12, 15, 16, 20, 22, 33, 40, 42];
let mut supported_nips = vec![1, 2, 9, 11, 12, 15, 16, 20, 22, 33, 40];
if c.authorization.nip42_auth {
supported_nips.push(42);