changeset 374:8f4ae09bc7c3

Enforce the TCP preference from config also
author Sebastien Decugis <sdecugis@nict.go.jp>
date Mon, 05 Jul 2010 11:35:15 +0900
parents 477a76a7d42f
children 40507b3750da
files freeDiameter/p_cnx.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/freeDiameter/p_cnx.c	Mon Jul 05 11:30:34 2010 +0900
+++ b/freeDiameter/p_cnx.c	Mon Jul 05 11:35:15 2010 +0900
@@ -188,7 +188,7 @@
 		new->dotls = dotls_immediate;
 
 		/* Add the new entry to the appropriate position (depending on preferences) */
-		if (peer->p_hdr.info.config.pic_flags.alg == PI_ALGPREF_TCP) {
+		if ((fd_g_config->cnf_flags.pr_tcp) || (peer->p_hdr.info.config.pic_flags.alg == PI_ALGPREF_TCP)) {
 			fd_list_insert_after(last_prio, &new->chain);
 		} else {
 			fd_list_insert_after(&peer->p_connparams, &new->chain); /* very first position */
"Welcome to our mercurial repository"