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

Add remote client IP to ping hosts #83

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vzr314
Copy link

@vzr314 vzr314 commented Nov 7, 2023

Appended $_SERVER["REMOTE_ADDR"] to ping hosts

Reversed order of $hosts array to place clinet IP on first postion

String reformatted

Appended $_SERVER["REMOTE_ADDR"] to ping hosts

Reversed order of $hosts array to place clinet IP on first postion

String reformatted
QuentinCG added a commit to QuentinCG/ezservermonitor-web that referenced this pull request Aug 1, 2024
@QuentinCG
Copy link

Hello,
Thanks for the pull request, I will add it in my fork ;)

For information, this is enough to put remote client on first place without reversing the all array (which is configured in a specific order by user) :

array_unshift($hosts, array_pop($hosts)); instead of $hosts = array_reverse($hosts, true);

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

Successfully merging this pull request may close these issues.

2 participants