mirror of
https://github.com/XShengTech/MEGREZ.git
synced 2026-06-06 00:04:43 +00:00
[Fix] 🐛 HTTP Get Remote IP Error
This commit is contained in:
@@ -51,6 +51,13 @@ func Start() {
|
||||
LogLevel: "disable",
|
||||
Charset: "UTF-8",
|
||||
EnableOptimizations: true,
|
||||
RemoteAddrHeaders: []string{
|
||||
"X-Real-Ip",
|
||||
"X-Forwarded-For",
|
||||
"CF-Connecting-IP",
|
||||
"True-Client-Ip",
|
||||
"X-Appengine-Remote-Addr",
|
||||
},
|
||||
}),
|
||||
iris.WithoutServerError(iris.ErrServerClosed),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user