Skip to content

Instantly share code, notes, and snippets.

@vkuznecovas vkuznecovas/main.go Secret
Last active Jan 26, 2018

Embed
What would you like to do?
iris test
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
You can’t perform that action at this time.