Commit 85acb072 authored by Kai Vehmanen's avatar Kai Vehmanen

Modified soa to use the bnf host_is_local().

darcs-hash:20060615145720-7659e-b9dda181fe4239e7865986e5947b9545b0bf1504.gz
parent efdbea72
......@@ -11,6 +11,7 @@
INCLUDES = -I$(srcdir)/../sdp -I../sdp \
-I$(srcdir)/../sip -I../sip \
-I$(srcdir)/../ipt -I../ipt \
-I$(srcdir)/../ipt -I../bnf \
-I$(srcdir)/../su -I../su
# ----------------------------------------------------------------------
......@@ -40,6 +41,7 @@ LDADD = libsoa.la \
../sip/libsip.la \
../sdp/libsdp.la \
../ipt/libipt.la \
../ipt/libbnf.la \
../su/libsu.la
test_soa_LDFLAGS = -static
......
......@@ -47,6 +47,7 @@
#include "sofia-sip/soa_session.h"
#include "sofia-sip/soa_add.h"
#include <sofia-sip/hostdomain.h>
#include <sofia-sip/su_tagarg.h>
#include <sofia-sip/su_localinfo.h>
#include <sofia-sip/su_uniqueid.h>
......@@ -1716,12 +1717,9 @@ soa_init_sdp_origin(soa_session_t *ss, sdp_origin_t *o, char buffer[64])
if (!c->c_nettype ||
!c->c_address ||
strcmp(c->c_address, "") == 0 ||
strcasecmp(c->c_address, "localhost") == 0 ||
strcasecmp(c->c_address, "localhost.localdomain") == 0 ||
strcmp(c->c_address, "0.0.0.0") == 0 ||
strcmp(c->c_address, "127.0.0.1") == 0 ||
strcmp(c->c_address, "::") == 0 ||
strcmp(c->c_address, "::1") == 0) {
!host_is_local(c->c_address)) {
return soa_init_sdp_connection(ss, c, buffer);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment