Skip to content

Commit

Permalink
Use useragent_ip element of the request_rec structure, per the module…
Browse files Browse the repository at this point in the history
… development guide.
  • Loading branch information
zi0r authored and thijskh committed Sep 26, 2023
1 parent 1465590 commit 300f438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth_mellon_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ static inline const char *am_compat_request_ip(request_rec *r) {
#if (AP_SERVER_MAJORVERSION_NUMBER == 2) && (AP_SERVER_MINORVERSION_NUMBER < 4)
return r->connection->remote_ip;
#else
return r->connection->client_ip;
return r->useragent_ip;
#endif
}

Expand Down

0 comments on commit 300f438

Please sign in to comment.