MVP BITCH
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user