]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
add the listener by key if required
authorAlan T. DeKok <aland@freeradius.org>
Wed, 31 Mar 2021 19:27:37 +0000 (15:27 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 22 Jul 2021 13:55:19 +0000 (09:55 -0400)
so that when doing reverse proxying, we can find equivalent
listeners by key

src/main/tls_listen.c

index 6e0ba526cc1a37e9577c9dd91c1a8731dbd0274e..44f6f2790d49ffe5267485f9a289b1561cd257bc 100644 (file)
@@ -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
         */