forked from coracle/flotilla
Detect nip29 properly before choosing smart path, more robust auth error checking
This commit is contained in:
@@ -62,11 +62,10 @@ export const mostlyRestrictedPolicy = (socket: Socket) => {
|
||||
|
||||
const pending = new Set<string>()
|
||||
|
||||
const updateStatus = () => {
|
||||
const updateStatus = () =>
|
||||
relaysMostlyRestricted.update(
|
||||
restricted > total / 2 ? assoc(socket.url, error) : dissoc(socket.url),
|
||||
)
|
||||
}
|
||||
|
||||
const unsubscribers = [
|
||||
on(socket, SocketEvent.Receive, (message: RelayMessage) => {
|
||||
|
||||
Reference in New Issue
Block a user