From 68786cdc4ab92ed1dad0a0a9136c9844f5664c45 Mon Sep 17 00:00:00 2001
From: Awiteb
Date: Fri, 7 Aug 2026 09:54:42 +0000
Subject: [PATCH] gossip: change the default value of
`GossipAllowedRelays.without_tls` to `false`
Signed-off-by: Awiteb
---
gossip/nostr-gossip/CHANGELOG.md | 6 ++++++
gossip/nostr-gossip/src/lib.rs | 4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/gossip/nostr-gossip/CHANGELOG.md b/gossip/nostr-gossip/CHANGELOG.md
index 679ec8cf8..c7946a074 100644
--- a/gossip/nostr-gossip/CHANGELOG.md
+++ b/gossip/nostr-gossip/CHANGELOG.md
@@ -27,6 +27,12 @@
-->
+## Unreleased
+
+### Breaking changes
+
+- Change the default value of `GossipAllowedRelays.without_tls` to `false` (https://github.com/nostrdevkit/nostr/pull/1436)
+
## v0.45.0 - 2026/08/05
### Breaking changes
diff --git a/gossip/nostr-gossip/src/lib.rs b/gossip/nostr-gossip/src/lib.rs
index 3e3e3e215..a81c2ebf2 100644
--- a/gossip/nostr-gossip/src/lib.rs
+++ b/gossip/nostr-gossip/src/lib.rs
@@ -86,7 +86,7 @@ pub struct GossipAllowedRelays {
pub onion: bool,
/// Allow local network relays (default: false)
pub local: bool,
- /// Allow relays without SSL/TLS encryption (default: true)
+ /// Allow relays without SSL/TLS encryption (default: false)
pub without_tls: bool,
}
@@ -95,7 +95,7 @@ impl Default for GossipAllowedRelays {
Self {
onion: true,
local: false,
- without_tls: true,
+ without_tls: false,
}
}
}