Skip to content

Commit

Permalink
Merge branch 'master' into websys-rtc
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaseizinger committed Sep 12, 2023
2 parents 6e3cfe6 + 92b5721 commit a0abc3e
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 24 deletions.
98 changes: 80 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions misc/server/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Add libp2p-lookup to Dockerfile to enable healthchecks.

### Fixed

- Disable QUIC `draft-29` support.
Listening on `/quic` and `/quic-v1` addresses with the same port would otherwise result in an "Address already in use" error by the OS.
See [PR 4467].

[PR 4467]: https://github.com/libp2p/rust-libp2p/pull/4467

## [0.12.2]
### Fixed
- Adhere to `--metrics-path` flag and listen on `0.0.0.0:8888` (default IPFS metrics port).
Expand Down
7 changes: 2 additions & 5 deletions misc/server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
.multiplex(yamux::Config::default())
.timeout(Duration::from_secs(20));

let quic_transport = {
let mut config = quic::Config::new(&local_keypair);
config.support_draft_29 = true;
quic::tokio::Transport::new(config)
};
let quic_transport = quic::tokio::Transport::new(quic::Config::new(&local_keypair));

dns::TokioDnsConfig::system(libp2p::core::transport::OrTransport::new(
quic_transport,
Expand Down Expand Up @@ -126,6 +122,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
Err(e) => return Err(e.into()),
}
}

if config.addresses.append_announce.is_empty() {
warn!("No external addresses configured.");
}
Expand Down
2 changes: 1 addition & 1 deletion transports/webrtc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ multihash = { workspace = true }
rand = "0.8"
rcgen = "0.10.0"
serde = { version = "1.0", features = ["derive"] }
stun = "0.4"
stun = "0.5"
thiserror = "1"
tinytemplate = "1.2"
tokio = { version = "1.32", features = ["net"], optional = true}
Expand Down

0 comments on commit a0abc3e

Please sign in to comment.