Skip to content

Commit

Permalink
temp: ensure webrtc listens on 0.0.0.0 for testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
ozwaldorf committed Oct 20, 2023
1 parent ef51f26 commit 9e26e07
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion core/handshake/src/transports/webrtc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,13 @@ impl Transport for WebRtcTransport {
type Sender = WebRtcSender;
type Receiver = WebRtcReceiver;

async fn bind(waiter: ShutdownWaiter, config: Self::Config) -> Result<(Self, Option<Router>)> {
async fn bind(
waiter: ShutdownWaiter,
mut config: Self::Config,
) -> Result<(Self, Option<Router>)> {
// TEMP: Hardcode the listening address to avoid older testnet configs
config.udp_address.set_ip([0, 0, 0, 0].into());

info!("Binding WebRTC transport on {}", config.udp_address);
let conns = Arc::new(DashMap::new());

Expand Down

0 comments on commit 9e26e07

Please sign in to comment.