Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lading/src/generator/udp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ impl UdpWorker {
let total_bytes = self.block_cache.peek_next_size(&handle);

tokio::select! {
conn = UdpSocket::bind("127.0.0.1:0"), if connection.is_none() => {
conn = UdpSocket::bind("0.0.0.0:0"), if connection.is_none() => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I buy the motivation but what this suggests to me is that the socket for this generator and others should be default bound to localhost but configurable otherwise. I can put up a PR for that.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Said PR: #1725

match conn {
Ok(sock) => {
debug!("UDP port bound");
Expand Down