Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
bootstrap system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Oct 2013 at 12:45 UTC
Updated:
18 Oct 2013 at 12:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
amarbijay commentedThe actual purpose is to contribute this function to Drupal core. Please help us to add the new function to bootstrap.
function drupal_get_client_ip(){
//body here
}
Comment #2
longwaveWhy did you not get the true client IP address? If this is due to a reverse proxy, there is already support for this in core, but it needs to be configured in settings.php.
If you want to submit your patch to Drupal, see https://drupal.org/patch/submit. Note that bugs should be fixed in Drupal 8 first and then backported, if they also exist in Drupal 8.
Comment #3
amarbijay commentedPlease ignore this path
Comment #4
amarbijay commentedThanks longwave for your quick suggestion. I tried with configuring settings.php but again it failed to get actual machine IP.
So I created a patch following the link you have given above https://drupal.org/patch/submit.
Please apply this path in bootstrap.inc file in all version of Drupal as it does not have any dependencies or issues.
Comment #6
amarbijay commentedPatch is formatted.
Comment #8
amarbijay commentedUpdated patch
Comment #10
amarbijay commentedMoving issue to drupal 7.x-dev first
Comment #11
amarbijay commentedMoving issue to drupal 7.x-dev first
Comment #13
amarbijay commented#10: drupal-getactualclientip-2114123-1.patch queued for re-testing.
Comment #14
amarbijay commentedUpdated patch with actual format
Comment #15
amarbijay commentedPlease ignore this patch as patch in comment #14 is already commited.