Skip to content

Commit

Permalink
Update log file paths and initialize log in main.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
arloor committed Apr 29, 2024
1 parent e2eb749 commit e650f88
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 73 deletions.
72 changes: 0 additions & 72 deletions a/log/nat.log_rCURRENT.

This file was deleted.

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 @@ const NFTABLES_ETC: &str = "/etc/nftables";
const IP_FORWARD: &str = "/proc/sys/net/ipv4/ip_forward";

fn main() -> Result<(), Box<dyn std::error::Error>>{
log_x::init_log("a/log", "nat.log")?;
log_x::init_log("log", "nat.log")?;

let _ = std::fs::create_dir_all(NFTABLES_ETC);
// 修改内核参数,开启端口转发
Expand Down

0 comments on commit e650f88

Please sign in to comment.