Forked from github.com/natureglobal/realip.
Differences:
- More idiomatic Go style
- Avoids closures
- Caches trusted IPs
I tried overhauling in hopes of gaining significant performance boost, but as of this writing the differences matters only ever so slightly over the orignal.