aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-04-07 06:17:27 +0000
committerRoger Dingledine <arma@torproject.org>2004-04-07 06:17:27 +0000
commit90caa946629c59b178e3b22250d7f116b5a2e72d (patch)
treefd96e72da3a9de61d082ae9772024f10fe60a14a /src/or/router.c
parentfdb58e8ea3eeccc48db1881926b43dcec211c9de (diff)
downloadtor-90caa946629c59b178e3b22250d7f116b5a2e72d.tar
tor-90caa946629c59b178e3b22250d7f116b5a2e72d.tar.gz
routerinfo->addr is host order
svn:r1515
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 9ca940022..42168bf49 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -352,7 +352,7 @@ int router_rebuild_descriptor(void) {
ri = tor_malloc_zero(sizeof(routerinfo_t));
ri->address = tor_strdup(options.Address);
ri->nickname = tor_strdup(options.Nickname);
- ri->addr = (uint32_t) addr.s_addr;
+ ri->addr = (uint32_t) ntohl(addr.s_addr);
ri->or_port = options.ORPort;
ri->socks_port = options.SocksPort;
ri->dir_port = options.DirPort;