mirror of
https://github.com/aljazceru/khatru.git
synced 2026-01-18 12:44:23 +01:00
advertise nip11 on nip11 handler
This commit is contained in:
@@ -308,7 +308,7 @@ func (s *Server) handleWebsocket(w http.ResponseWriter, r *http.Request) {
|
||||
func (s *Server) handleNIP11(w http.ResponseWriter, r *http.Request) {
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
|
||||
supportedNIPs := []int{9, 12, 15, 16, 20}
|
||||
supportedNIPs := []int{9, 11, 12, 15, 16, 20}
|
||||
if _, ok := s.relay.(Auther); ok {
|
||||
supportedNIPs = append(supportedNIPs, 42)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user