diff options
| author | rebecca <ubq323@ubq323.website> | 2026-02-10 21:59:42 +0000 |
|---|---|---|
| committer | rebecca <ubq323@ubq323.website> | 2026-02-10 22:02:06 +0000 |
| commit | 9766e0f10f3f19ce8343a3573b6de7ebeb7cfe95 (patch) | |
| tree | 0a06d713247f762f139ef4c7f5100c1a9d01876b /client/application.go | |
| parent | d3835e6bbb5633b4fc2b2439978defa1d91dece6 (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.go | 4 |
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()) |
