Changeset 528 for branches/garlicat/src/ocatsetup.c
- Timestamp:
- 11/14/09 22:58:47 (3 years ago)
- File:
-
- 1 edited
-
branches/garlicat/src/ocatsetup.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/garlicat/src/ocatsetup.c
r526 r528 73 73 1, // daemon 74 74 #endif 75 #ifdef CONNECT_ROOT_PEERS 75 76 { 76 77 /* … … 81 82 0xf6, 0x83, 0x64, 0xac, 0x73, 0xf9, 0x61, 0xac, 0x9a, 0x00}}} // initial permanent peer "62bwjldt7fq2zgqa" (dot.cat) 82 83 }, 84 #endif 83 85 0, 84 86 "/dev/urandom", … … 173 175 void print_setup_struct(FILE *f) 174 176 { 175 char *c, ip[SBUF], nm[SBUF], ip6[SBUF], logf[SBUF], hw[SBUF] , rp[SBUF];177 char *c, ip[SBUF], nm[SBUF], ip6[SBUF], logf[SBUF], hw[SBUF]; 176 178 int i, t; 177 179 struct sockaddr_str sas; … … 262 264 ); 263 265 266 #ifdef CONNECT_ROOT_PEERS 264 267 for (i = 0; i < ROOT_PEERS; i++) 265 if (inet_ntop(AF_INET6, &setup_.root_peer[i], rp, SBUF)) 266 fprintf(f, "root_peer[%d] = %s\n", i, rp); 268 if (inet_ntop(AF_INET6, &setup_.root_peer[i], ip6, SBUF)) 269 fprintf(f, "root_peer[%d] = %s\n", i, ip6); 270 #endif 267 271 268 272 if (inet_ntops((struct sockaddr*) setup_.socks_dst, &sas))
Note: See TracChangeset
for help on using the changeset viewer.
