diff --git a/src/core/nip/11.ts b/src/core/nip/11.ts index 02febfa5..c8cc1f96 100644 --- a/src/core/nip/11.ts +++ b/src/core/nip/11.ts @@ -68,8 +68,7 @@ export class Nip11 { static async getRelayInformation(url: string) { try { const httpUrl = url - .replace(/^wss?:\/\//, 'https://') - .replace(/^ws?:\/\//, 'http://'); + .replace(/^ws(s?):\/\//, 'http$1://'); const response = await axios.get(httpUrl, { headers: {