summaryrefslogtreecommitdiff
path: root/client/main.go
diff options
context:
space:
mode:
authorrebecca <ubq323@ubq323.website>2026-02-10 21:59:42 +0000
committerrebecca <ubq323@ubq323.website>2026-02-10 22:02:06 +0000
commit9766e0f10f3f19ce8343a3573b6de7ebeb7cfe95 (patch)
tree0a06d713247f762f139ef4c7f5100c1a9d01876b /client/main.go
parentd3835e6bbb5633b4fc2b2439978defa1d91dece6 (diff)
use tls for connections
introduced are the --key and --cert options for the server and the --no-verify-cert option on the client
Diffstat (limited to 'client/main.go')
-rw-r--r--client/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/main.go b/client/main.go
index e4a9f6b..dc3070c 100644
--- a/client/main.go
+++ b/client/main.go
@@ -12,6 +12,7 @@ import (
var globalApp *application
func main() {
+ insecure := flag.Bool("no-verify-cert", false, "don't verify tls certificate (INSECURE, for testing only!)")
flag.Parse()
address := flag.Arg(0)
if address == "" {
@@ -30,7 +31,7 @@ func main() {
fmt.Println("bye!")
}()
- globalApp = newApplication(address)
+ globalApp = newApplication(address, *insecure)
go globalApp.RunClient()
defer globalApp.Stop()