Module: kamailio
Branch: master
Commit: e5983e4c7dc0bb506fcf38a1ad628df880cf0569
URL: 
https://github.com/kamailio/kamailio/commit/e5983e4c7dc0bb506fcf38a1ad628df880cf0569

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2019-04-30T09:24:02+02:00

core: skip link local interfaces in auto-discovery only if 
bind_ipv6_link_local=0

---

Modified: src/core/socket_info.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/e5983e4c7dc0bb506fcf38a1ad628df880cf0569.diff
Patch: 
https://github.com/kamailio/kamailio/commit/e5983e4c7dc0bb506fcf38a1ad628df880cf0569.patch

---

diff --git a/src/core/socket_info.c b/src/core/socket_info.c
index 4ed7b56487..472be175c0 100644
--- a/src/core/socket_info.c
+++ b/src/core/socket_info.c
@@ -1187,8 +1187,11 @@ static int build_iface_list(void)
                                }
                        }
                        if(is_link_local) {
-                               pkg_free(entry);
-                               continue;    /* link local addresses are not 
bindable */
+                               if(sr_bind_ipv6_link_local==0) {
+                                       /* skip - link local addresses are not 
bindable without scope */
+                                       pkg_free(entry);
+                                       continue;
+                               }
                        }
 
                        if(strlen(ifaces[index].name)==0)


_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to