mirror of
https://github.com/fiatjaf/khatru.git
synced 2025-11-20 11:06:26 +01:00
Don't list rejectapicall in nip86 supported methods
This commit is contained in:
4
nip86.go
4
nip86.go
@@ -130,6 +130,10 @@ func (rl *Relay) HandleNIP86(w http.ResponseWriter, r *http.Request) {
|
||||
// danger: this assumes the struct fields are appropriately named
|
||||
methodName := strings.ToLower(field.Name)
|
||||
|
||||
if methodName == "rejectapicall" {
|
||||
continue
|
||||
}
|
||||
|
||||
// assign this only if the function was defined
|
||||
if !reflect.ValueOf(value).IsNil() {
|
||||
methods = append(methods, methodName)
|
||||
|
||||
Reference in New Issue
Block a user