diff options
author | Roger Dingledine <arma@torproject.org> | 2004-04-07 06:17:27 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-04-07 06:17:27 +0000 |
commit | 90caa946629c59b178e3b22250d7f116b5a2e72d (patch) | |
tree | fd96e72da3a9de61d082ae9772024f10fe60a14a /src/or | |
parent | fdb58e8ea3eeccc48db1881926b43dcec211c9de (diff) | |
download | tor-90caa946629c59b178e3b22250d7f116b5a2e72d.tar tor-90caa946629c59b178e3b22250d7f116b5a2e72d.tar.gz |
routerinfo->addr is host order
svn:r1515
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/router.c | 2 |
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; |