Skip to content

Commit

Permalink
refactor: switch webrtc protocol to tcp
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Aug 26, 2024
1 parent b2ce5ef commit e046836
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/torii/libp2p/src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ impl<P: Provider + Sync> Relay<P> {
pool: Sql,
provider: P,
port: u16,
port_webrtc: u16,
local_key_path: Option<String>,
cert_path: Option<String>,
) -> Result<Self, Error> {
Expand Down Expand Up @@ -137,7 +136,7 @@ impl<P: Provider + Sync> Relay<P> {

// WebRTC
let listen_addr_webrtc = Multiaddr::from(Ipv4Addr::UNSPECIFIED)
.with(Protocol::Udp(port_webrtc))
.with(Protocol::Tcp(port))
.with(Protocol::WebRTCDirect);
swarm.listen_on(listen_addr_webrtc.clone())?;

Expand Down

0 comments on commit e046836

Please sign in to comment.