MVP BITCH
parent
4e8ad1d5f4
commit
8fded3ccaf
|
|
@ -295,7 +295,7 @@ pub fn build_output_stream_udp(cfg: &Stream) -> Result<OutputStreamUDP, String>
|
||||||
impl OutputStream for OutputStreamUDP {
|
impl OutputStream for OutputStreamUDP {
|
||||||
fn put(&mut self, v: Vec<char>) {
|
fn put(&mut self, v: Vec<char>) {
|
||||||
if self.last_socket.is_none() {
|
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() {
|
if result.is_err() {
|
||||||
eprintln!("OutputStreamUDP: failed to bind to 127.0.0.1:{}: {:?}", &(self.port+10).to_string(), result.err());
|
eprintln!("OutputStreamUDP: failed to bind to 127.0.0.1:{}: {:?}", &(self.port+10).to_string(), result.err());
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue