jshttp / proxy-addr

Determine address of proxied request

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: invalid IP address: localhost

SkeLLLa opened this issue · comments

commented

Example doesn't work

const proxyAddr = require('proxy-addr');
proxyAddr.compile('localhost'); // throws error TypeError: invalid IP address: localhost

haha, good catch! fixing the docs 👍