Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
develon2015 committed Jul 21, 2021
1 parent 57bdbf5 commit f8fb9d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use tokio::net::UdpSocket;

use colored::*;

const DEBUG: bool = true;
const DEBUG: bool = false;

const LISTEN: &str = "127.0.0.1:53";
const SERVER: &str = "1.1.1.1:53";
Expand Down Expand Up @@ -253,8 +253,8 @@ async fn udp_serv() -> std::io::Result<()> {
} else {
LISTEN.to_string()
};
let log = if let Some(_) = std::env::args().nth(3) {
true
let log = if let Some(log) = std::env::args().nth(3) {
if let Ok(_) = ["log_off", "off", "close"].binary_search(&log.as_str()) { false } else { true }
} else {
false
} || DEBUG;
Expand Down

0 comments on commit f8fb9d1

Please sign in to comment.