From 63ffeeffb73b5fdff9b3d2f190fcdeff153163bd Mon Sep 17 00:00:00 2001 From: xmdhs Date: Tue, 12 Sep 2023 13:27:27 +0800 Subject: [PATCH] =?UTF-8?q?YggdrasilRoot=20=E6=94=B9=E4=B8=BA=E5=8F=AF?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/config.go | 3 +++ handle/yggdrasil/yggdrasil.go | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) 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),