Skip to content

mkg20001/hapi-real-ip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

hapi-real-ip

Get the real IP of the user

Usage

await server.register(require('hapi-real-ip'))

server.route({
  method: 'GET',
  path: '/ip',
  handler: async (request, h) => {
    return request.realIp()
  }
})

About

Get the real IP of the user

Resources

Stars

Watchers

Forks

Packages

No packages published