Skip to content

Commit

Permalink
修改端口
Browse files Browse the repository at this point in the history
  • Loading branch information
vnt-dev committed Apr 23, 2023
1 parent 0947840 commit f9a82c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ fn main() {
netmask,
};
log_init();
let udp = UdpSocket::bind("0.0.0.0:29871").unwrap();
let udp = UdpSocket::bind(format!("0.0.0.0:{}",port)).unwrap();
log::info!("启动成功,udp:{:?}",udp.local_addr().unwrap());
println!("启动成功,udp:{:?}", udp.local_addr().unwrap());
log::info!("config:{:?}",config);
Expand Down

0 comments on commit f9a82c7

Please sign in to comment.