From 2d0ea5ba085f9caa84a7e7b1fd55f653834009aa Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 5 Apr 2025 20:37:03 +0800 Subject: sshPubkey* shall no longer be global variables --- server.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'server.go') diff --git a/server.go b/server.go index 30b39f1..71e1232 100644 --- a/server.go +++ b/server.go @@ -4,6 +4,7 @@ import ( "net/http" "github.com/jackc/pgx/v5/pgxpool" + goSSH "golang.org/x/crypto/ssh" ) type server struct { @@ -19,4 +20,11 @@ type server struct { ircSendBuffered chan string ircSendDirectChan chan errorBack[string] + + // globalData is passed as "global" when rendering HTML templates. + globalData map[string]any + + serverPubkeyString string + serverPubkeyFP string + serverPubkey goSSH.PublicKey } -- cgit v1.2.3