summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2010-03-30 13:31:22 +0000
committerBenny Prijono <bennylp@teluu.com>2010-03-30 13:31:22 +0000
commitc42140a0678fa1e90e0e08f20c92adae9bef4713 (patch)
treeaf8a676876440b8f2cd78dbd100b3ed9258938b0
parent740a9ec278b399d70b3f40bc27b63f1ed121c25e (diff)
More ticket #1046:
- fixed the wrong priority which caused zeroconf address to end up having the same priority as a legitimate interface (thanks Karl-Fredrik Blixt Hagholm for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3133 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjlib/src/pj/sock_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pjlib/src/pj/sock_common.c b/pjlib/src/pj/sock_common.c
index ec649e60..f2e10969 100644
--- a/pjlib/src/pj/sock_common.c
+++ b/pjlib/src/pj/sock_common.c
@@ -701,8 +701,8 @@ PJ_DEF(pj_status_t) pj_gethostip(int af, pj_sockaddr *addr)
WEIGHT_HOSTNAME = 1, /* hostname IP is not always valid! */
WEIGHT_DEF_ROUTE = 2,
WEIGHT_INTERFACE = 1,
- WEIGHT_LOOPBACK = -4,
- WEIGHT_LINK_LOCAL = -3,
+ WEIGHT_LOOPBACK = -5,
+ WEIGHT_LINK_LOCAL = -4,
WEIGHT_DISABLED = -50,
MIN_WEIGHT = WEIGHT_DISABLED+1 /* minimum weight to use */