diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/common/util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c index eeef04ea0..5665d70b4 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -2936,7 +2936,8 @@ get_interface_address6(int severity, sa_family_t family, tor_addr_t *addr) memset(addr, 0, sizeof(tor_addr_t)); memset(&target_addr, 0, sizeof(target_addr)); my_addr_len = (socklen_t)sizeof(my_addr); - ((struct sockaddr_in*)&target_addr)->sin_port = 9; /* the "discard" service port */ + /* Use the "discard" service port */ + ((struct sockaddr_in*)&target_addr)->sin_port = 9; /* Don't worry: no packets are sent. We just need to use a real address * on the actual internet. */ if (family == AF_INET6) { |