Skip to content

Commit f56a212

Browse files
Revert "Only enable the quic port if there are quic peers"
This reverts commit b27acd4.
1 parent a864aa8 commit f56a212

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

mobile/src/lib.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,19 +96,14 @@ pub async fn start_mycelium(peers: Vec<String>, tun_fd: i32, priv_key: Vec<u8>,
9696
.filter_map(|peer| peer.parse().ok())
9797
.collect();
9898

99-
// Check if any peers use QUIC protocol
100-
let has_quic_peers = endpoints.iter().any(|ep| ep.proto() == mycelium::endpoint::Protocol::Quic);
101-
info!("QUIC peers detected: {}", has_quic_peers);
102-
10399
let secret_key = build_secret_key(priv_key).await.unwrap();
104100

105101
let config = Config {
106102
node_key: secret_key,
107103
peers: endpoints,
108104
no_tun: false,
109105
tcp_listen_port: DEFAULT_TCP_LISTEN_PORT,
110-
// Only enable QUIC port if there are QUIC peers
111-
quic_listen_port: if has_quic_peers { Some(DEFAULT_QUIC_LISTEN_PORT) } else { None },
106+
quic_listen_port: Some(DEFAULT_QUIC_LISTEN_PORT),
112107
peer_discovery_port: None, // disable multicast discovery
113108
#[cfg(any(
114109
target_os = "linux",

0 commit comments

Comments
 (0)