This commit is contained in:
parent
e81b6fa1fa
commit
3f83ee275a
2 changed files with 3 additions and 3 deletions
2
.vscode/launch.json
vendored
2
.vscode/launch.json
vendored
|
@ -11,7 +11,7 @@
|
|||
"cargo": {
|
||||
"args": ["build"]
|
||||
},
|
||||
"args": ["--seed=:)"],
|
||||
"args": ["--seed=gargamel"],
|
||||
"cwd": "${workspaceFolder}",
|
||||
"env": {
|
||||
"CARGO_MANIFEST_DIR": "${workspaceFolder}",
|
||||
|
|
|
@ -25,7 +25,7 @@ fn start_network_thread<M: Send + 'static>(
|
|||
let result = network_loop(messages, socket);
|
||||
match result {
|
||||
Ok(()) => error!("Network thread: Loop returned without error?"),
|
||||
Err(ref err) => error!("Network thread: {}", err),
|
||||
Err(ref err) => error!("Network thread: {err}"),
|
||||
};
|
||||
result
|
||||
})
|
||||
|
@ -48,7 +48,7 @@ fn network_receive_loop(messages: Sender<NetworkMessage>, socket: UdpSocket) ->
|
|||
}
|
||||
|
||||
fn setup_socket(port: u16) -> Result<(Sender<NetworkMessage>, Receiver<NetworkMessage>)> {
|
||||
let socket = UdpSocket::bind((Ipv6Addr::LOCALHOST, port))?;
|
||||
let socket = UdpSocket::bind((Ipv6Addr::UNSPECIFIED, port))?;
|
||||
configure_socket(&socket)?;
|
||||
let (send_inbound, receive_inbound) = unbounded();
|
||||
start_network_thread(network_receive_loop, send_inbound, socket.try_clone()?);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue