-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Maciej Wójcik
committed
Nov 8, 2023
1 parent
8fb812c
commit b787f5d
Showing
5 changed files
with
137 additions
and
7 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
use clap::Parser; | ||
|
||
#[derive(Debug, Parser, Clone)] | ||
#[clap(about = "Defguard VPN gateway service")] | ||
#[command(version)] | ||
pub struct Config { | ||
/// Defines how often (in seconds) interface statistics are sent to Defguard client | ||
#[arg(long, short = 'p', env = "DEFGUARD_STATS_PERIOD", default_value = "10")] | ||
pub stats_period: u64, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters