Skip to content

Commit

Permalink
Merge pull request #15 from ziyouwa/master
Browse files Browse the repository at this point in the history
一些小小的修复
  • Loading branch information
vnt-dev authored Jun 6, 2024
2 parents 1f383ea + 979a370 commit e0e8e64
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
target/*
src/proto/*
src/generated_serial_number.rs
key/*
log/*
.vscode/*
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ fn main() {
);
let generated_code = format!(r#"pub const SERIAL_NUMBER: &str = "{}";"#, serial_number);
let dest_path = "src/generated_serial_number.rs";
let mut file = File::create(&dest_path).unwrap();
let mut file = File::create(dest_path).unwrap();
file.write_all(generated_code.as_bytes()).unwrap();
}
3 changes: 2 additions & 1 deletion src/core/service/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,8 @@ impl ServerPacketHandler {
context: &Context,
) {
let mut status_info = ClientStatusInfo::default();
status_info.p2p_list = client_status_info
let iplist = &mut status_info.p2p_list;
*iplist = client_status_info
.p2p_list
.iter()
.map(|v| v.next_ip.into())
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ mod error;
mod generated_serial_number;
mod proto;
mod protocol;
pub const VNT_VERSION: &'static str = env!("CARGO_PKG_VERSION");
pub const VNT_VERSION: &str = env!("CARGO_PKG_VERSION");

/// 默认网关信息
const GATEWAY: Ipv4Addr = Ipv4Addr::new(10, 26, 0, 1);
Expand Down

0 comments on commit e0e8e64

Please sign in to comment.