question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add optional IP selection handler

See original GitHub issue

Add an optional IP selection handler to the SDK client initialization step which accepts the request context and expects returning an IP.

Add a default handler for this which looks at the X-Forwarded-For header and falls back to the source IP.

The resulting IP is the IP for which details are fetched.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
UmanShahzadcommented, Jan 27, 2021

@cdeath happy to help.

btw… is there a proper channel to discuss API functionality?

There’s no public forum yet no, but the API is well documented at https://ipinfo.io/developers. If you have some custom requirements or feature suggestions then support@ipinfo.io is probably the best place right now.

0reactions
cdeathcommented, Jan 27, 2021

@UmanShahzad it’s a Netlify rewrite rule… but i’ll see if i can run a function or do something with this on the free tier…

edit: found this… https://community.netlify.com/t/user-location-in-headers/11937 it seems they already provide country information… i’m going to look into it…

thanks again for your help!

btw… is there a proper channel to discuss API functionality?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add optional IP selection handler · Issue #9 · ipinfo/perl · GitHub
Add an optional IP selection handler to the SDK client initialization step which accepts the request context and expects returning an IP.
Read more >
K5427: Selecting IP addresses for local resolution listener ...
In BIG-IP 10.x and earlier, if the listener object matches a self IP address, then local BIND resolution is automatically enabled. · In...
Read more >
Configure availability group listener - SQL Server Always On
The listener will use one or more static IP addresses. Additional IP addresses are optional. To create an availability group listener across ...
Read more >
Creating channel authentication records with an IP ... - IBM
To add a channel authentication record: Click the create icon create icon in the channel authentication record widget toolbar. Select the ...
Read more >
Listener rules for your Application Load Balancer
To add a forward action, choose Add action, Forward to and choose one or more target groups. If you use more than one...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found