Skip to content

Add remote client IP to ping hosts#83

Open
vzr314 wants to merge 1 commit intoshevabam:masterfrom
vzr314:patch-1
Open

Add remote client IP to ping hosts#83
vzr314 wants to merge 1 commit intoshevabam:masterfrom
vzr314:patch-1

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