1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-11 20:20:27 +08:00

add log to file option -l

This commit is contained in:
源文雨
2022-04-20 19:02:32 +08:00
parent 9f90cc456c
commit 6586b5dd10
5 changed files with 28 additions and 5 deletions

View File

@@ -7,7 +7,7 @@
## Usage
> If you are running in windows, remember to select the `wintun.dll` of your arch in `lower/wintun` and place it alongside the compiled exe
```bash
wg [-c config.yaml] [-d|w] [-g] [-h] [-m mtu] [-p]
wg [-c config.yaml] [-d|w] [-g] [-h] [-m mtu] [-p] [-l log.txt]
```
#### Instructions
```bash
@@ -16,8 +16,10 @@ wg [-c config.yaml] [-d|w] [-g] [-h] [-m mtu] [-p]
-d print debug logs
-g generate key pair
-h display this help
-l string
write log to file (default "-")
-m int
set the mtu of wg (default 32700)
set the mtu of wg (default 1432)
-p show my publickey
-w only show logs above warn level
```