1
0
mirror of https://github.com/coalaura/up.git synced 2025-07-17 21:44:35 +00:00

server version

This commit is contained in:
Laura
2025-06-20 22:51:55 +02:00
parent f2da5302bd
commit 82a1d3444a

View File

@ -20,7 +20,8 @@ const (
)
var (
log = logger.New().DetectTerminal().WithOptions(logger.Options{
Version = "dev"
log = logger.New().DetectTerminal().WithOptions(logger.Options{
NoLevel: true,
})
@ -29,7 +30,7 @@ var (
rates = NewRateLimiter()
)
func main() {
func init() {
challenges.OnEvicted(func(_ string, entry interface{}) {
challenge := entry.(internal.ChallengeEntry)
@ -41,6 +42,10 @@ func main() {
rates.Dec(session.Client)
})
}
func main() {
log.Printf("up server %s\n", Version)
authorized, err := LoadAuthorizedKeys()
log.MustPanic(err)