summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-03-20 08:33:45 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-03-20 08:33:45 +0100
commit439f34e6755a3c0238ae939361104c2be37e6496 (patch)
tree4c2e4f60c2501cab28953cf95d838431ed32015c
parent3f47d2f6b0d2c9ebe48aebddd80cd6417c22ec5b (diff)
use an IPv4 address instead of localhost
Depending on the host OS localhost might resolve to something we can't handle properly. In a FreeBSD jail this started to behave oddly. There is no point to force AF_INET6 for this test. open("/etc/hosts",O_CLOEXEC,0666) = 3 (0x3) fstat(3,{ mode=-rw-r--r-- ,inode=12621,size=1138,blksize=4096 }) = 0 (0x0) read(3,"# $FreeBSD: src/etc/hosts,v 1.16"...,4096) = 1138 (0x472) read(3,0x80282e000,4096) = 0 (0x0) close(3) = 0 (0x0) __sysctl(0x7fffffffaff0,0x4,0x0,0x7fffffffb070,0x0,0x0) = 0 (0x0) __sysctl(0x7fffffffaff0,0x4,0x82b0aa300,0x7fffffffb070,0x0,0x0) = 0 (0x0) socket(PF_INET6,0x10000002,17) = 3 (0x3) connect(3,{ AF_INET6 [::1]:1 },28) = 0 (0x0) getsockname(3,{ AF_INET6 [2a01:4f8:150:70c4::5:2]:55378 },0x7fffffffafec) = 0 (0x0) ioctl(3,SIOCGIFAFLAG_IN6,0xffffaec8) ERR#6 'Device not configured' close(3) = 0 (0x0) socket(PF_INET6,0x10000002,17) = 3 (0x3) connect(3,{ AF_INET6 [::1]:1 },28) = 0 (0x0) getsockname(3,{ AF_INET6 [2a01:4f8:150:70c4::5:2]:14967 },0x7fffffffafec) = 0 (0x0) ioctl(3,SIOCGIFAFLAG_IN6,0xffffaec8) ERR#6 'Device not configured' close(3) = 0 (0x0) socket(PF_INET6,0x10000002,17) = 3 (0x3) connect(3,{ AF_INET6 [::1]:1 },28) = 0 (0x0) getsockname(3,{ AF_INET6 [2a01:4f8:150:70c4::5:2]:39503 },0x7fffffffafec) = 0 (0x0) ioctl(3,SIOCGIFAFLAG_IN6,0xffffaec8) ERR#6 'Device not configured' close(3) = 0 (0x0)
-rw-r--r--callagent/tests/Tests.st2
1 files changed, 1 insertions, 1 deletions
diff --git a/callagent/tests/Tests.st b/callagent/tests/Tests.st
index 550e54f..70da470 100644
--- a/callagent/tests/Tests.st
+++ b/callagent/tests/Tests.st
@@ -83,7 +83,7 @@ TestCase subclass: SIPUdpTransportTest [
datagram address: target address.
datagram data: 'foooo'.
- transp := SIPUdpTransport startOn: 'localhost'.
+ transp := SIPUdpTransport startOn: '127.0.0.1'.
transp start.
transp queueDatagram: datagram.