Changeset 60cf11c in mod_gnutls for src/gnutls_hooks.c


Ignore:
Timestamp:
Jul 8, 2011, 5:04:16 PM (8 years ago)
Author:
Dash Shendy <neuromancer@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, msva, upstream
Children:
8fffed1
Parents:
b4a875b
Message:

Proxy (TLS termination) patch

Signed-off-by: Dash Shendy <neuromancer@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_hooks.c

    rb4a875b r60cf11c  
    739739        _gnutls_log(debug_log_fp, "%s: %d\n", __func__, __LINE__);
    740740
    741         if (c == NULL)
    742                 return DECLINED;
     741        if (c == NULL) {
     742                return DECLINED;
     743        }
    743744
    744745        sc = (mgs_srvconf_rec *) ap_get_module_config(c->base_server->
     
    750751        }
    751752
    752         if (c->remote_addr->hostname)
    753                 /* Connection initiated by Apache (mod_proxy) => ignore */
    754                 return OK;
    755 
     753        if (c->remote_addr->hostname || apr_strnatcmp(c->remote_ip,c->local_ip) == 0) {
     754        /* Connection initiated by Apache (mod_proxy) => ignore */
     755                return OK;
     756        }
     757               
    756758        ctxt = create_gnutls_handle(c->pool, c);
    757759
Note: See TracChangeset for help on using the changeset viewer.