implement auth and a simple admin-follows whitelist
Some checks failed
Go / build (push) Has been cancelled

This commit is contained in:
2025-09-07 19:08:29 +01:00
parent f5a8c094e4
commit 5edb7a3b09
27 changed files with 458 additions and 117 deletions

View File

@@ -2,16 +2,21 @@ package app
import (
"context"
"net/http"
"github.com/coder/websocket"
"lol.mleku.dev/chk"
"utils.orly/atomic"
)
type Listener struct {
*Server
conn *websocket.Conn
ctx context.Context
remote string
conn *websocket.Conn
ctx context.Context
remote string
req *http.Request
challenge atomic.Bytes
authedPubkey atomic.Bytes
}
func (l *Listener) Write(p []byte) (n int, err error) {