From 2c81b7ebb5724c36f1d07f88b281ad9c44dd55f4 Mon Sep 17 00:00:00 2001 From: WoozyMasta Date: Fri, 29 Nov 2024 06:19:51 +0300 Subject: [PATCH] fix: download links and log level key --- README.md | 18 +++++++++--------- cli/main.go | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 133f77e..3963a32 100644 --- a/README.md +++ b/README.md @@ -171,12 +171,12 @@ dayz-all-restart 360 [logo]: assets/bercon.png [BattlEye]: https://www.battleye.com/ "BattlEye – The Anti-Cheat Gold Standard" [BERConProtocol]: pkg/bercon/spec/bercon-protocol.md "BattlEye RCON Protocol Specification" -[MacOS arm64]: https://github.com/WoozyMasta/bercon-go/releases/latest/download/bercon-cli-darwin-arm64> "MacOS arm64 file" -[MacOS amd64]: https://github.com/WoozyMasta/bercon-go/releases/latest/download/bercon-cli-darwin-amd64> "MacOS amd64 file" -[Linux i386]: https://github.com/WoozyMasta/bercon-go/releases/latest/download/bercon-cli-linux-386> "Linux i386 file" -[Linux amd64]: https://github.com/WoozyMasta/bercon-go/releases/latest/download/bercon-cli-linux-amd64> "Linux amd64 file" -[Linux arm]: https://github.com/WoozyMasta/bercon-go/releases/latest/download/bercon-cli-linux-arm> "Linux arm file" -[Linux arm64]: https://github.com/WoozyMasta/bercon-go/releases/latest/download/bercon-cli-linux-arm64> "Linux arm64 file" -[Windows i386]: https://github.com/WoozyMasta/bercon-go/releases/latest/download/bercon-cli-windows-386.exe> "Windows i386 file" -[Windows amd64]: https://github.com/WoozyMasta/bercon-go/releases/latest/download/bercon-cli-windows-amd64.exe> "Windows amd64 file" -[Windows arm64]: https://github.com/WoozyMasta/bercon-go/releases/latest/download/bercon-cli-windows-arm64.exe> "Windows arm64 file" +[MacOS arm64]: https://github.com/WoozyMasta/bercon-cli/releases/latest/download/bercon-cli-darwin-arm64 "MacOS arm64 file" +[MacOS amd64]: https://github.com/WoozyMasta/bercon-cli/releases/latest/download/bercon-cli-darwin-amd64 "MacOS amd64 file" +[Linux i386]: https://github.com/WoozyMasta/bercon-cli/releases/latest/download/bercon-cli-linux-386 "Linux i386 file" +[Linux amd64]: https://github.com/WoozyMasta/bercon-cli/releases/latest/download/bercon-cli-linux-amd64 "Linux amd64 file" +[Linux arm]: https://github.com/WoozyMasta/bercon-cli/releases/latest/download/bercon-cli-linux-arm "Linux arm file" +[Linux arm64]: https://github.com/WoozyMasta/bercon-cli/releases/latest/download/bercon-cli-linux-arm64 "Linux arm64 file" +[Windows i386]: https://github.com/WoozyMasta/bercon-cli/releases/latest/download/bercon-cli-windows-386.exe "Windows i386 file" +[Windows amd64]: https://github.com/WoozyMasta/bercon-cli/releases/latest/download/bercon-cli-windows-amd64.exe "Windows amd64 file" +[Windows arm64]: https://github.com/WoozyMasta/bercon-cli/releases/latest/download/bercon-cli-windows-arm64.exe "Windows arm64 file" diff --git a/cli/main.go b/cli/main.go index 6aa5937..16d9a94 100644 --- a/cli/main.go +++ b/cli/main.go @@ -110,7 +110,7 @@ func getFlags() []cli.Flag { // run application with curent context func runApp(cCtx *cli.Context) error { - setupLogging(cCtx.String("loglevel"), logFormatter) + setupLogging(cCtx.String("log-level"), logFormatter) args := cCtx.Args() @@ -141,7 +141,7 @@ func runApp(cCtx *cli.Context) error { // setup bercon params conn.SetDeadlineTimeout(cCtx.Int("timeout")) - buffersize := cCtx.Int("buffersize") + buffersize := cCtx.Int("buffer-size") if buffersize < 1024 { log.Warnf("Buffer sizes less than 1024 may be unstable") }