diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2012-06-26 17:05:46 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2012-06-26 17:05:46 +0000 |
commit | 26d9299e119c5645f428b92a3e6ffac03d7e5d0f (patch) | |
tree | 0ead52944a1b720155eb6d05b7fd813e6e89775a /src/exit | |
parent | 44d10fe5cea875a05a31059bf2b2da25ee0cd5c0 (diff) | |
download | gnunet-26d9299e119c5645f428b92a3e6ffac03d7e5d0f.tar.gz gnunet-26d9299e119c5645f428b92a3e6ffac03d7e5d0f.zip |
-fix??
Diffstat (limited to 'src/exit')
-rw-r--r-- | src/exit/gnunet-daemon-exit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/exit/gnunet-daemon-exit.c b/src/exit/gnunet-daemon-exit.c index f23838776..1e4649409 100644 --- a/src/exit/gnunet-daemon-exit.c +++ b/src/exit/gnunet-daemon-exit.c | |||
@@ -2858,14 +2858,14 @@ add_services (int proto, | |||
2858 | serv->address.port = remote_port; | 2858 | serv->address.port = remote_port; |
2859 | if (0 == strcmp ("localhost4", hostname)) | 2859 | if (0 == strcmp ("localhost4", hostname)) |
2860 | { | 2860 | { |
2861 | const char *ip4addr = exit_argv[4]; | 2861 | const char *ip4addr = exit_argv[5]; |
2862 | 2862 | ||
2863 | serv->address.af = AF_INET; | 2863 | serv->address.af = AF_INET; |
2864 | GNUNET_assert (1 != inet_pton (AF_INET, ip4addr, &serv->address.address.ipv4)); | 2864 | GNUNET_assert (1 == inet_pton (AF_INET, ip4addr, &serv->address.address.ipv4)); |
2865 | } | 2865 | } |
2866 | else if (0 == strcmp ("localhost6", hostname)) | 2866 | else if (0 == strcmp ("localhost6", hostname)) |
2867 | { | 2867 | { |
2868 | const char *ip6addr = exit_argv[2]; | 2868 | const char *ip6addr = exit_argv[3]; |
2869 | 2869 | ||
2870 | serv->address.af = AF_INET6; | 2870 | serv->address.af = AF_INET6; |
2871 | GNUNET_assert (1 == inet_pton (AF_INET6, ip6addr, &serv->address.address.ipv6)); | 2871 | GNUNET_assert (1 == inet_pton (AF_INET6, ip6addr, &serv->address.address.ipv6)); |