mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 10:55:51 +02:00
feat: mcp server
This commit is contained in:
parent
c4a9d03bb3
commit
e8ee931e16
51 changed files with 2749 additions and 1526 deletions
|
@ -59,6 +59,12 @@ func AuthRequired() gin.HandlerFunc {
|
|||
return
|
||||
}
|
||||
|
||||
if token := c.Query("node_secret"); token != "" && token == settings.NodeSettings.Secret {
|
||||
c.Set("Secret", token)
|
||||
c.Next()
|
||||
return
|
||||
}
|
||||
|
||||
token := getToken(c)
|
||||
if token == "" {
|
||||
abortWithAuthFailure()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue