Skip to content

Commit e6864b2

Browse files
authored
Merge pull request #10 from btcforplebs/FIXauth-headers
fix: modify server authentication logic to check for absence of `no-auth'
2 parents 560da7c + 0475909 commit e6864b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/hooks/useServers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function parseServerTags(event: NdkEvent): ManagedServer[] {
3434
const flag = tag[3] || "";
3535
const note = tag[4];
3636
const customName = (tag[5] || "").trim();
37-
const requiresAuth = rawType === "satellite" ? true : flag.includes("auth");
37+
const requiresAuth = rawType === "satellite" ? true : !flag.includes("no-auth");
3838
const sync = flag.includes("sync");
3939
const derivedName = deriveServerNameFromUrl(url);
4040
const name = customName || derivedName || url.replace(/^https?:\/\//, "");

0 commit comments

Comments
 (0)