Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get RemoteAddr (or other [remote] variables)? #114

Open
terminar opened this issue Jul 10, 2022 · 2 comments
Open

How to get RemoteAddr (or other [remote] variables)? #114

terminar opened this issue Jul 10, 2022 · 2 comments
Assignees
Labels
feature request Enhancement or feature request

Comments

@terminar
Copy link

Hi,
kudos for the work on Algernon, it's getting to be a small swiss army knife for me doing some quick and dirty test stuff.

i wanted to get the remote ip address but i can't find any field, table, function which returns such information.
As example, compared to PHP it would be $_SERVER["REMOTE_ADDR"] (https://www.php.net/manual/de/reserved.variables.server.php).

Bye
Björn

@xyproto xyproto self-assigned this Jul 10, 2022
@xyproto xyproto added the feature request Enhancement or feature request label Jul 10, 2022
@xyproto
Copy link
Owner

xyproto commented Jul 10, 2022

Hi Björn,

Thanks for the feature request! I agree that this is a good idea.

Cheers,
Alexander

@tooolbox
Copy link
Collaborator

@terminar it's probably pretty easy to set up a PR if you want. Basically copy this function and pull out req.RemoteAddr or whatnot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Enhancement or feature request
Projects
None yet
Development

No branches or pull requests

3 participants