Skip to content

Instantly share code, notes, and snippets.

@vkuznecovas
Last active January 26, 2018 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vkuznecovas/8fc376989f20bf89d598231da517edfd to your computer and use it in GitHub Desktop.
Save vkuznecovas/8fc376989f20bf89d598231da517edfd to your computer and use it in GitHub Desktop.
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