diff options
author | Runxi Yu <me@runxiyu.org> | 2025-04-05 20:39:08 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-04-05 20:39:08 +0800 |
commit | 0e112aec65c4c36a36c1df9ecfb87b20ad1d7f38 (patch) | |
tree | 6c44d89bfad25dc56d67334c903d15bdf81cb4e3 /server.go | |
parent | sshPubkey* shall no longer be global variables (diff) | |
download | forge-0e112aec65c4c36a36c1df9ecfb87b20ad1d7f38.tar.gz forge-0e112aec65c4c36a36c1df9ecfb87b20ad1d7f38.tar.zst forge-0e112aec65c4c36a36c1df9ecfb87b20ad1d7f38.zip |
packPasses shall no longer be a global variable
Diffstat (limited to 'server.go')
-rw-r--r-- | server.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -4,6 +4,7 @@ import ( "net/http" "github.com/jackc/pgx/v5/pgxpool" + "go.lindenii.runxiyu.org/lindenii-common/cmap" goSSH "golang.org/x/crypto/ssh" ) @@ -27,4 +28,7 @@ type server struct { serverPubkeyString string serverPubkeyFP string serverPubkey goSSH.PublicKey + + // packPasses contains hook cookies mapped to their packPass. + packPasses cmap.Map[string, packPass] } |