1
0
mirror of https://github.com/coturn/coturn.git synced 2025-10-28 13:31:16 +01:00

ip address resolution fix

This commit is contained in:
mom040267 2015-01-31 07:14:06 +00:00
parent 2d9595e9b1
commit e212b7e961
5 changed files with 16 additions and 8 deletions

View File

@ -1,3 +1,7 @@
1/31/2015 Oleg Moskalenko <mom040267@gmail.com>
Version 4.4.1.2 'Ardee West':
- IP address resolution fix;
1/24/2015 Oleg Moskalenko <mom040267@gmail.com> 1/24/2015 Oleg Moskalenko <mom040267@gmail.com>
Version 4.4.1.1 'Ardee West': Version 4.4.1.1 'Ardee West':
- https admin server; - https admin server;

View File

@ -2,7 +2,7 @@
# Common settings script. # Common settings script.
TURNVERSION=4.4.1.1 TURNVERSION=4.4.1.2
BUILDDIR=~/rpmbuild BUILDDIR=~/rpmbuild
ARCH=`uname -p` ARCH=`uname -p`
TURNSERVER_SVN_URL=http://coturn.googlecode.com/svn TURNSERVER_SVN_URL=http://coturn.googlecode.com/svn

View File

@ -1,5 +1,5 @@
Name: turnserver Name: turnserver
Version: 4.4.1.1 Version: 4.4.1.2
Release: 0%{dist} Release: 0%{dist}
Summary: Coturn TURN Server Summary: Coturn TURN Server
@ -288,6 +288,8 @@ fi
%{_includedir}/turn/client/TurnMsgLib.h %{_includedir}/turn/client/TurnMsgLib.h
%changelog %changelog
* Sat Jan 31 2015 Oleg Moskalenko <mom040267@gmail.com>
- Sync to 4.4.1.2
* Sat Jan 24 2015 Oleg Moskalenko <mom040267@gmail.com> * Sat Jan 24 2015 Oleg Moskalenko <mom040267@gmail.com>
- Sync to 4.4.1.1 - Sync to 4.4.1.1
* Wed Dec 24 2014 Oleg Moskalenko <mom040267@gmail.com> * Wed Dec 24 2014 Oleg Moskalenko <mom040267@gmail.com>

View File

@ -245,24 +245,26 @@ int make_ioa_addr(const u08bits* saddr0, int port, ioa_addr *addr) {
beg_af: beg_af:
while(!found && addr_result) { while(addr_result) {
if(addr_result->ai_family == family) { if(addr_result->ai_family == family) {
ns_bcopy(addr_result->ai_addr, addr, addr_result->ai_addrlen);
if (addr_result->ai_family == AF_INET) { if (addr_result->ai_family == AF_INET) {
ns_bcopy(addr_result->ai_addr, addr, addr_result->ai_addrlen);
addr->s4.sin_port = nswap16(port); addr->s4.sin_port = nswap16(port);
#if defined(TURN_HAS_SIN_LEN) /* tested when configured */ #if defined(TURN_HAS_SIN_LEN) /* tested when configured */
addr->s4.sin_len = sizeof(struct sockaddr_in); addr->s4.sin_len = sizeof(struct sockaddr_in);
#endif #endif
found = 1;
break;
} else if (addr_result->ai_family == AF_INET6) { } else if (addr_result->ai_family == AF_INET6) {
ns_bcopy(addr_result->ai_addr, addr, addr_result->ai_addrlen);
addr->s6.sin6_port = nswap16(port); addr->s6.sin6_port = nswap16(port);
#if defined(SIN6_LEN) /* this define is required by IPv6 if used */ #if defined(SIN6_LEN) /* this define is required by IPv6 if used */
addr->s6.sin6_len = sizeof(struct sockaddr_in6); addr->s6.sin6_len = sizeof(struct sockaddr_in6);
#endif #endif
} else {
continue;
}
found = 1; found = 1;
break;
}
} }
addr_result = addr_result->ai_next; addr_result = addr_result->ai_next;

View File

@ -31,7 +31,7 @@
#ifndef __IOADEFS__ #ifndef __IOADEFS__
#define __IOADEFS__ #define __IOADEFS__
#define TURN_SERVER_VERSION "4.4.1.1" #define TURN_SERVER_VERSION "4.4.1.2"
#define TURN_SERVER_VERSION_NAME "Ardee West" #define TURN_SERVER_VERSION_NAME "Ardee West"
#define TURN_SOFTWARE "Coturn-" TURN_SERVER_VERSION " '" TURN_SERVER_VERSION_NAME "'" #define TURN_SOFTWARE "Coturn-" TURN_SERVER_VERSION " '" TURN_SERVER_VERSION_NAME "'"