-
-
Save vkuznecovas/8fc376989f20bf89d598231da517edfd to your computer and use it in GitHub Desktop.
iris test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "github.com/kataras/iris" | |
func main() { | |
app := iris.New() | |
app.Get("/", func(ctx iris.Context) { ctx.WriteString(ctx.RemoteAddr()) }) | |
app.Run(iris.Addr(":8080"), iris.WithoutServerError(iris.ErrServerClosed), | |
iris.WithRemoteAddrHeader("X-Forwarded-For")) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment