mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-04-20 13:59:10 +00:00
.env file support
This commit is contained in:
parent
3e33244e26
commit
c82c610c4b
3 changed files with 4 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,3 +1,5 @@
|
|||
build/
|
||||
tmp/
|
||||
.*
|
||||
*.secret
|
||||
!/.github
|
||||
|
|
|
@ -7,6 +7,7 @@ version = "0.1.1"
|
|||
[dependencies]
|
||||
base64 = { version = "0.21" }
|
||||
clap = { version = "4.1", features = ["derive"] }
|
||||
dotenv = "0.15"
|
||||
env_logger = "0.10"
|
||||
log = "0.4"
|
||||
mio = { version = "0.8", features = ["os-poll", "net", "os-ext"] }
|
||||
|
|
|
@ -17,6 +17,7 @@ struct Args {
|
|||
}
|
||||
|
||||
fn main() {
|
||||
dotenv::dotenv().ok();
|
||||
env_logger::Builder::from_env(Env::default().default_filter_or("info")).init();
|
||||
let args = Args::parse();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue