aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/github.com/tomasen/realip/README.md
blob: 3eea89a37601ef8c7d9dfd94ac03a341ca42b94e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
a golang library that can get client's real public ip address from http request headers

[![Build Status](https://travis-ci.org/tomasen/realip.svg?branch=master)](https://travis-ci.org/Tomasen/realip)
[![GoDoc](https://godoc.org/github.com/Tomasen/realip?status.svg)](http://godoc.org/github.com/Tomasen/realip)


* follow the rule of X-FORWARDED-FOR/rfc7239
* follow the rule of X-Real-Ip
* lan/intranet IP address filtered

## Developing

Commited code must pass:

* [golint](https://github.com/golang/lint)
* [go vet](https://godoc.org/golang.org/x/tools/cmd/vet)
* [gofmt](https://golang.org/cmd/gofmt)
* [go test](https://golang.org/cmd/go/#hdr-Test_packages):