fix redis detect logic
if using reverted proxy like nginx, only binding on local host
Merge pull request #315 from cnpm/local-bindding

Local bindding and redis fix