Project "FreeSWITCH Source" received a push.

branch: master updated

       via: c18835d3f919c7ba260dfa0e61254fb305850518 (commit)
      from: 986f258db05f7b841fcb68231ae07d5174fbcb38 (commit)


= COMMIT LOG ===========================================================
committer: Mathieu Parent
comments: 
Skinny: Allow to listen on ipv6
also allow to specify a blank ip which means: all

diff --git a/src/mod/endpoints/mod_skinny/mod_skinny.c b/src/mod/endpoints/mod_skinny/mod_skinny.c
index 4061b94..a30b0fd 100644
--- a/src/mod/endpoints/mod_skinny/mod_skinny.c
+++ b/src/mod/endpoints/mod_skinny/mod_skinny.c
@@ -1524,7 +1524,7 @@ static void *SWITCH_THREAD_FUNC skinny_profile_run(switch_thread_t *thread, void
 new_socket:
 	while(globals.running) {
 		switch_clear_flag_locked(profile, PFLAG_RESPAWN);
-		rv = switch_sockaddr_info_get(&sa, profile->ip, SWITCH_INET, profile->port, 0, tmp_pool);
+		rv = switch_sockaddr_info_get(&sa, profile->ip, SWITCH_UNSPEC, profile->port, 0, tmp_pool);
 		if (rv)
 			goto fail;
 		rv = switch_socket_create(&profile->sock, switch_sockaddr_get_family(sa), SOCK_STREAM, SWITCH_PROTO_TCP, tmp_pool);
@@ -1663,7 +1663,7 @@ switch_status_t skinny_profile_set(skinny_profile_t *profile, const char *var, c
 		profile->domain = switch_core_strdup(profile->pool, val);
 	} else if (!strcasecmp(var, "ip")) {
 		if (!profile->ip || strcmp(val, profile->ip)) {
-			profile->ip = switch_core_strdup(profile->pool, val);
+			profile->ip = switch_core_strdup(profile->pool, zstr(val) ? NULL : val);
 			switch_set_flag_locked(profile, PFLAG_SHOULD_RESPAWN);
 		}
 	} else if (!strcasecmp(var, "port")) {
========================================================================

Summary of changes:
 src/mod/endpoints/mod_skinny/mod_skinny.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

this email was generated because of /git/your-repo.git/hooks/post-receive by the file /git-core/contrib/hooks/post-receive-email
For more info, see http://blog.chomperstomp.com/?p=630 --
FreeSWITCH Source