feed: ignore vmess protocol messages

Drop encrypted vmess messages.
OFF0 2 years ago
parent b1c1b4f9f8
commit d058bdd35d
Signed by: offbyn
GPG Key ID: 94A2F643C51F37FA

@ -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 {

Loading…
Cancel
Save