|
|
|
@ -35,7 +35,7 @@ func (s *Server) HandleRelayInfo(w http.ResponseWriter, r *http.Request) { |
|
|
|
supportedNIPs := relayinfo.GetList( |
|
|
|
supportedNIPs := relayinfo.GetList( |
|
|
|
relayinfo.BasicProtocol, |
|
|
|
relayinfo.BasicProtocol, |
|
|
|
relayinfo.Authentication, |
|
|
|
relayinfo.Authentication, |
|
|
|
// relayinfo.EncryptedDirectMessage,
|
|
|
|
relayinfo.EncryptedDirectMessage, |
|
|
|
relayinfo.EventDeletion, |
|
|
|
relayinfo.EventDeletion, |
|
|
|
relayinfo.RelayInformationDocument, |
|
|
|
relayinfo.RelayInformationDocument, |
|
|
|
relayinfo.GenericTagQueries, |
|
|
|
relayinfo.GenericTagQueries, |
|
|
|
@ -43,7 +43,7 @@ func (s *Server) HandleRelayInfo(w http.ResponseWriter, r *http.Request) { |
|
|
|
relayinfo.EventTreatment, |
|
|
|
relayinfo.EventTreatment, |
|
|
|
// relayinfo.CommandResults,
|
|
|
|
// relayinfo.CommandResults,
|
|
|
|
relayinfo.ParameterizedReplaceableEvents, |
|
|
|
relayinfo.ParameterizedReplaceableEvents, |
|
|
|
// relayinfo.ExpirationTimestamp,
|
|
|
|
relayinfo.ExpirationTimestamp, |
|
|
|
relayinfo.ProtectedEvents, |
|
|
|
relayinfo.ProtectedEvents, |
|
|
|
relayinfo.RelayListMetadata, |
|
|
|
relayinfo.RelayListMetadata, |
|
|
|
) |
|
|
|
) |
|
|
|
@ -51,7 +51,7 @@ func (s *Server) HandleRelayInfo(w http.ResponseWriter, r *http.Request) { |
|
|
|
supportedNIPs = relayinfo.GetList( |
|
|
|
supportedNIPs = relayinfo.GetList( |
|
|
|
relayinfo.BasicProtocol, |
|
|
|
relayinfo.BasicProtocol, |
|
|
|
relayinfo.Authentication, |
|
|
|
relayinfo.Authentication, |
|
|
|
// relayinfo.EncryptedDirectMessage,
|
|
|
|
relayinfo.EncryptedDirectMessage, |
|
|
|
relayinfo.EventDeletion, |
|
|
|
relayinfo.EventDeletion, |
|
|
|
relayinfo.RelayInformationDocument, |
|
|
|
relayinfo.RelayInformationDocument, |
|
|
|
relayinfo.GenericTagQueries, |
|
|
|
relayinfo.GenericTagQueries, |
|
|
|
@ -69,7 +69,7 @@ func (s *Server) HandleRelayInfo(w http.ResponseWriter, r *http.Request) { |
|
|
|
// Construct description with dashboard URL
|
|
|
|
// Construct description with dashboard URL
|
|
|
|
dashboardURL := s.DashboardURL(r) |
|
|
|
dashboardURL := s.DashboardURL(r) |
|
|
|
description := version.Description + " dashboard: " + dashboardURL |
|
|
|
description := version.Description + " dashboard: " + dashboardURL |
|
|
|
|
|
|
|
|
|
|
|
// Get relay identity pubkey as hex
|
|
|
|
// Get relay identity pubkey as hex
|
|
|
|
var relayPubkey string |
|
|
|
var relayPubkey string |
|
|
|
if skb, err := s.D.GetRelayIdentitySecret(); err == nil && len(skb) == 32 { |
|
|
|
if skb, err := s.D.GetRelayIdentitySecret(); err == nil && len(skb) == 32 { |
|
|
|
@ -78,7 +78,7 @@ func (s *Server) HandleRelayInfo(w http.ResponseWriter, r *http.Request) { |
|
|
|
relayPubkey = hex.Enc(sign.Pub()) |
|
|
|
relayPubkey = hex.Enc(sign.Pub()) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
info = &relayinfo.T{ |
|
|
|
info = &relayinfo.T{ |
|
|
|
Name: s.Config.AppName, |
|
|
|
Name: s.Config.AppName, |
|
|
|
Description: description, |
|
|
|
Description: description, |
|
|
|
|