From d058bdd35d6930ee172e9c01111ad1b1cdc1be22 Mon Sep 17 00:00:00 2001 From: OFF0 Date: Sat, 15 Apr 2023 15:17:11 +0200 Subject: [PATCH] feed: ignore vmess protocol messages Drop encrypted vmess messages. --- src/main.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.ts b/src/main.ts index 7d88cf4..3d0cf77 100644 --- a/src/main.ts +++ b/src/main.ts @@ -152,6 +152,10 @@ const handleReply = (evt: EventWithNip19, relay: string) => { }; const handleTextNote = (evt: Event, relay: string) => { + if (evt.content.startsWith('vmess://') && !evt.content.includes(' ')) { + console.info('drop VMESS encrypted message'); + return; + } if (eventRelayMap[evt.id]) { eventRelayMap[evt.id] = [...(eventRelayMap[evt.id]), relay]; // TODO: just push? } else {