Use new() when registering the module

This might be what's preventing us from registering this on the Caddy page.

See https://caddy.community/t/cannot-claim-package/20537
This commit is contained in:
akp 2024-10-12 13:40:12 +01:00
parent 3d4c4db169
commit 0ab43aee88
No known key found for this signature in database
GPG key ID: CF8D58F3DEB20755

View file

@ -12,7 +12,7 @@ import (
)
func init() {
caddy.RegisterModule(&TailscaleAuth{})
caddy.RegisterModule(new(TailscaleAuth))
}
type TailscaleAuth struct {