MVP BITCH

master
Bel LaPointe 2023-03-23 16:48:36 -06:00
parent 4e8ad1d5f4
commit 8fded3ccaf
1 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,7 @@ pub fn build_output_stream_udp(cfg: &Stream) -> Result<OutputStreamUDP, String>
impl OutputStream for OutputStreamUDP {
fn put(&mut self, v: Vec<char>) {
if self.last_socket.is_none() {
let result = std::net::UdpSocket::bind("127.0.0.1:".to_string() + &(self.port+10).to_string());
let result = std::net::UdpSocket::bind("0.0.0.0:".to_string() + &(self.port+10).to_string());
if result.is_err() {
eprintln!("OutputStreamUDP: failed to bind to 127.0.0.1:{}: {:?}", &(self.port+10).to_string(), result.err());
return;