add clause for websocket close code 4537 because why?

This commit is contained in:
fiatjaf
2024-01-05 20:55:24 -03:00
parent 8d0afc1f12
commit 89ac8f1f1a

View File

@@ -96,6 +96,7 @@ func (rl *Relay) HandleWebsocket(w http.ResponseWriter, r *http.Request) {
websocket.CloseGoingAway, // 1001
websocket.CloseNoStatusReceived, // 1005
websocket.CloseAbnormalClosure, // 1006
4537, // some client seems to send many of these
) {
rl.Log.Printf("unexpected close error from %s: %v\n", r.Header.Get("X-Forwarded-For"), err)
}