From: Alan T. DeKok Date: Wed, 31 Mar 2021 19:27:37 +0000 (-0400) Subject: add the listener by key if required X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0872e6527d65dfee0a685e161397b1a75ee0a145;p=thirdparty%2Ffreeradius-server.git add the listener by key if required so that when doing reverse proxying, we can find equivalent listeners by key --- diff --git a/src/main/tls_listen.c b/src/main/tls_listen.c index 9d60e83cae..87bfdc5b96 100644 --- a/src/main/tls_listen.c +++ b/src/main/tls_listen.c @@ -578,6 +578,21 @@ int dual_tls_send(rad_listen_t *listener, REQUEST *request) */ if (request->reply->code == 0) return 0; +#ifdef WITH_COA_TUNNEL + /* + * Save the key, if we haven't already done that. + */ + if (listener->send_coa && !listener->key) { + VALUE_PAIR *vp; + + vp = fr_pair_find_by_num(request->config, PW_TCP_SESSION_KEY, 0, TAG_ANY); + if (vp) { + RDEBUG("Adding send CoA listener with key %s" vp->vp_strvalue); +// listener_store_bykey(request->listener, vp->vp_strvalue); + } + } +#endif + /* * Pack the VPs */