[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit c32050ae282bc69bff1c959c96253ee9bc0d4c61
Author: David Goulet <dgoulet@xxxxxxxxxxxxxx>
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@xxxxxxxxxxxxxx>
---
 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));
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits