[tor-commits] [torsocks/master] test: Make getpeername test connect to moria1

dgoulet at torproject.org dgoulet at torproject.org
Fri Apr 20 14:55:17 UTC 2018


commit c32050ae282bc69bff1c959c96253ee9bc0d4c61
Author: David Goulet <dgoulet at torproject.org>
Date:   Fri Apr 20 10:51:29 2018 -0400

    test: Make getpeername test connect to moria1
    
    The other IP doesn't work anymore and I can't recall what it was ;).
    
    Signed-off-by: David Goulet <dgoulet at torproject.org>
---
 tests/test_getpeername.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/test_getpeername.c b/tests/test_getpeername.c
index c09e487..269d2a1 100644
--- a/tests/test_getpeername.c
+++ b/tests/test_getpeername.c
@@ -35,7 +35,7 @@ static void test_getpeername(void)
 	struct sockaddr_in addrv4;
 	struct sockaddr_storage ss;
 	socklen_t addrlen;
-	const char *ip = "93.95.227.222";
+	const char *ip = "128.31.0.39";
 
 	ret = pipe(pipe_fds);
 	if (ret < 0) {
@@ -60,7 +60,7 @@ static void test_getpeername(void)
 
 	/* Connect socket through Tor so we can test the wrapper. */
 	addrv4.sin_family = AF_INET;
-	addrv4.sin_port = htons(443);
+	addrv4.sin_port = htons(9131);
 	inet_pton(addrv4.sin_family, ip, &addrv4.sin_addr);
 	memset(addrv4.sin_zero, 0, sizeof(addrv4.sin_zero));
 





More information about the tor-commits mailing list