add: gm http server auth key
This commit is contained in:
1 parent
bea91fbf73
commit
0cbaa27b74
4 files changed
+5
-27
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user