diff --git a/config/config.go b/config/config.go index 59134cf..750c52a 100644 --- a/config/config.go +++ b/config/config.go @@ -20,4 +20,7 @@ type Config struct { RsaPriKey string TexturePath string TextureBaseUrl string + HomepageUrl string + RegisterUrl string + ServerName string } diff --git a/handle/yggdrasil/yggdrasil.go b/handle/yggdrasil/yggdrasil.go index 30e8658..7232258 100644 --- a/handle/yggdrasil/yggdrasil.go +++ b/handle/yggdrasil/yggdrasil.go @@ -66,10 +66,10 @@ func (y *Yggdrasil) YggdrasilRoot() httprouter.Handle { ImplementationName: "authlib-skin", ImplementationVersion: "0.0.1", Links: yggdrasilM.YggdrasilMetaLinks{ - Homepage: "", - Register: "", + Homepage: y.config.HomepageUrl, + Register: y.config.RegisterUrl, }, - ServerName: "test", + ServerName: y.config.ServerName, EnableProfileKey: true, }, SignaturePublickey: string(y.pubkey),