add: gm http server auth key

This commit is contained in:
flswld committed 2023-10-23 23:13:11 +08:00
1 parent bea91fbf73
commit 0cbaa27b74
4 files changed
+5 -27

No files matched your search

+1 -1
View File
@@ -71,7 +71,7 @@ func (c *Controller) syncGlobalGsOnlineMap() {
func (c *Controller) authorize() gin.HandlerFunc {
return func(context *gin.Context) {
if context.GetHeader("Auth") == "flswld" {
if context.GetHeader("GmAuthKey") == config.GetConfig().Hk4e.GmAuthKey {
// 验证通过
context.Next()
return