Module: kamailio
Branch: master
Commit: e5983e4c7dc0bb506fcf38a1ad628df880cf0569
URL:
https://github.com/kamailio/kamailio/commit/e5983e4c7dc0bb506fcf38a1ad628df…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
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/e5983e4c7dc0bb506fcf38a1ad628df…
Patch:
https://github.com/kamailio/kamailio/commit/e5983e4c7dc0bb506fcf38a1ad628df…
---
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)