summaryrefslogtreecommitdiff
path: root/client/application.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/application.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/application.go')
-rw-r--r--client/application.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/application.go b/client/application.go
index ad5f2c6..0debedd 100644
--- a/client/application.go
+++ b/client/application.go
@@ -27,9 +27,9 @@ type application struct {
activePaste <-chan string
}
-func newApplication(serverAddress string) *application {
+func newApplication(serverAddress string, insecure bool) *application {
var app application
- app.Client = client.New(serverAddress)
+ app.Client = client.New(serverAddress, insecure)
app.cache = object.NewCache(&app)
app.windowCache = window.NewCache()
app.goTo(app.cmdWindow.Location())