Skip to content

Commit

Permalink
ip address resolution fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mom040267 committed Jan 31, 2015
1 parent 2d9595e commit e212b7e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
1/31/2015 Oleg Moskalenko <[email protected]>
Version 4.4.1.2 'Ardee West':
- IP address resolution fix;

1/24/2015 Oleg Moskalenko <[email protected]>
Version 4.4.1.1 'Ardee West':
- https admin server;
Expand Down
2 changes: 1 addition & 1 deletion rpm/build.settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Common settings script.

TURNVERSION=4.4.1.1
TURNVERSION=4.4.1.2
BUILDDIR=~/rpmbuild
ARCH=`uname -p`
TURNSERVER_SVN_URL=http://coturn.googlecode.com/svn
Expand Down
4 changes: 3 additions & 1 deletion rpm/turnserver.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: turnserver
Version: 4.4.1.1
Version: 4.4.1.2
Release: 0%{dist}
Summary: Coturn TURN Server

Expand Down Expand Up @@ -288,6 +288,8 @@ fi
%{_includedir}/turn/client/TurnMsgLib.h

%changelog
* Sat Jan 31 2015 Oleg Moskalenko <[email protected]>
- Sync to 4.4.1.2
* Sat Jan 24 2015 Oleg Moskalenko <[email protected]>
- Sync to 4.4.1.1
* Wed Dec 24 2014 Oleg Moskalenko <[email protected]>
Expand Down
12 changes: 7 additions & 5 deletions src/client/ns_turn_ioaddr.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,24 +245,26 @@ int make_ioa_addr(const u08bits* saddr0, int port, ioa_addr *addr) {

beg_af:

while(!found && addr_result) {
while(addr_result) {

if(addr_result->ai_family == family) {
ns_bcopy(addr_result->ai_addr, addr, addr_result->ai_addrlen);
if (addr_result->ai_family == AF_INET) {
ns_bcopy(addr_result->ai_addr, addr, addr_result->ai_addrlen);
addr->s4.sin_port = nswap16(port);
#if defined(TURN_HAS_SIN_LEN) /* tested when configured */
addr->s4.sin_len = sizeof(struct sockaddr_in);
#endif
found = 1;
break;
} 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);
#if defined(SIN6_LEN) /* this define is required by IPv6 if used */
addr->s6.sin6_len = sizeof(struct sockaddr_in6);
#endif
} else {
continue;
found = 1;
break;
}
found = 1;
}

addr_result = addr_result->ai_next;
Expand Down
2 changes: 1 addition & 1 deletion src/ns_turn_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#ifndef __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_SOFTWARE "Coturn-" TURN_SERVER_VERSION " '" TURN_SERVER_VERSION_NAME "'"

Expand Down

0 comments on commit e212b7e

Please sign in to comment.