fake googlebots / nginx-http-rdns

A. Schulze sca at andreasschulze.de
Mon Sep 26 07:32:59 UTC 2016


lists:

> Nginx has a reverse DNS module:
> https://github.com/flant/nginx-http-rdns

for an older version from 20140411 I have a patch. That version works  
without problems.

--- nginx-1.10.1.orig/nginx-http-rdns-20140411/ngx_http_rdns_module.c
+++ nginx-1.10.1/nginx-http-rdns-20140411/ngx_http_rdns_module.c
@@ -214,7 +214,7 @@ static char * merge_loc_conf(ngx_conf_t
      }
  #endif

-    if (conf->conf.enabled && ((core_loc_cf->resolver == NULL) ||  
(core_loc_cf->resolver->udp_connections.nelts == 0))) {
+    if (conf->conf.enabled && ((core_loc_cf->resolver == NULL) ||  
(core_loc_cf->resolver->connections.nelts == 0))) {
          ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "no core resolver  
defined for rdns");
          return NGX_CONF_ERROR;
      }

> I see it has a 10.1 issue:
> https://github.com/flant/nginx-http-rdns/issues/8
not sure if my patch addresses that issue...

Andreas




More information about the nginx mailing list