diff options
Diffstat (limited to 'src/sp_disabled_functions.c')
| -rw-r--r-- | src/sp_disabled_functions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp_disabled_functions.c b/src/sp_disabled_functions.c index 4807955..a6fc194 100644 --- a/src/sp_disabled_functions.c +++ b/src/sp_disabled_functions.c | |||
| @@ -327,7 +327,7 @@ static void should_disable(zend_execute_data* execute_data, | |||
| 327 | } | 327 | } |
| 328 | 328 | ||
| 329 | if (config_node->cidr) { | 329 | if (config_node->cidr) { |
| 330 | char* client_ip = getenv("REMOTE_ADDR"); | 330 | const char* client_ip = get_ipaddr(); |
| 331 | if (client_ip && false == cidr_match(client_ip, config_node->cidr)) { | 331 | if (client_ip && false == cidr_match(client_ip, config_node->cidr)) { |
| 332 | goto next; | 332 | goto next; |
| 333 | } | 333 | } |
