Commit Graph

2808 Commits

Author SHA1 Message Date
Nick Mathewson
c466b7e72f Speed up tor_strndup a lot: profiling suggests that our use of strlcpy here was a bad idea.
svn:r2821
2004-11-12 20:41:03 +00:00
Nick Mathewson
eabcf6618e Write most of the implementation for SAVECONF.
svn:r2820
2004-11-12 20:09:54 +00:00
Nick Mathewson
5109de5626 Rename exit_policy to addr_policy, since it gets used for SOCKS and directory connections too. Make all policies get validated in options_validate, and make SOCKS/directory policies get set in options_act.
svn:r2819
2004-11-12 19:39:13 +00:00
Peter Palfrader
ad8e779db2 Tweak it some more
svn:r2817
2004-11-12 17:34:02 +00:00
Peter Palfrader
ecf21bda3f Change init startup script to properly deal with tor printing stuff on startup.
svn:r2816
2004-11-12 17:31:42 +00:00
Peter Palfrader
26652ef72c Guess this is 0.0.8+0.0.9pre5-2
svn:r2815
2004-11-12 17:24:28 +00:00
Peter Palfrader
3bd77da001 Remove /usr/bin/tor-control.py from the binary package
svn:r2814
2004-11-12 17:21:16 +00:00
Peter Palfrader
ead200164a Do not patch the default torrc to include settings we really want. Instead modify the compiled in default options.
svn:r2813
2004-11-12 17:17:58 +00:00
Peter Palfrader
a1e7ad4855 Fix two comments in torrc.sample.in directly in the upstream source
svn:r2812
2004-11-12 17:04:42 +00:00
Peter Palfrader
abd90020a4 Point to /var/log/tor (the directory) instead of a single file (/var/log/tor/log) in the debian patch of the manpage.
svn:r2811
2004-11-12 16:52:10 +00:00
Peter Palfrader
b7131c2260 Make logs readable by the system administrators (group adm)
svn:r2810
2004-11-12 16:48:27 +00:00
Peter Palfrader
2e0db9b0f9 Symlink tor(8) manpage to torrc(5)
svn:r2809
2004-11-12 16:47:21 +00:00
Nick Mathewson
60880cda84 Resolve a bunch of FIXME items; mark a lot more for attention; ask for clarification on some. Turn all XXXX008 ("showstopper for 0.0.8 release") items into XXXX009 or XXXX, since plainly they were not showstoppers for 0.0.8. Add/clean some docs.
svn:r2808
2004-11-12 16:39:03 +00:00
Nick Mathewson
2a5bcb29e6 Resolve FIXME: Possible solution to note_disconnect problem; needs thought and review.
svn:r2807
2004-11-12 05:52:19 +00:00
Nick Mathewson
5d92fbe30e Use autoconf to enable largefile support where necessary. Use ftello where available, since ftell can fail at 2GB.
svn:r2806
2004-11-12 05:05:41 +00:00
Nick Mathewson
0faab62cd9 Resolve FIXMES: sometimes an error code is just an error code
svn:r2805
2004-11-12 05:03:50 +00:00
Roger Dingledine
90e0ad517e dfc caught a SIGXFSZ error when his debugfile reached 2GB.
so if they exist, catch them and ignore them.
write() will fail normally and we'll look at errno like
normal human beings.


svn:r2804
2004-11-12 04:59:37 +00:00
Roger Dingledine
c106ab8315 clean torrc sample
change log files to end in .log for logrotate to notice
mention that address doesn't need to be defined


svn:r2803
2004-11-12 04:00:07 +00:00
Roger Dingledine
21782df73e mention that Address doesn't need to be set
svn:r2802
2004-11-12 03:30:11 +00:00
Roger Dingledine
a24bd3c024 move datadirectory to the 'general' section,
move contactinfo to the 'server' section


svn:r2801
2004-11-12 03:29:03 +00:00
Roger Dingledine
fde595feb7 when clients do --list-fingerprint, it's misleading to
give them one, because it will never be the same again


svn:r2800
2004-11-11 13:24:10 +00:00
Nick Mathewson
6252cba522 apply patch from Andre Eisenbach: include event code with events, as required by control-spec.txt
svn:r2799
2004-11-11 00:54:53 +00:00
Nick Mathewson
e69d9647ed Remove XXXX009 comment telling us to do the last (circID-related) fix
svn:r2798
2004-11-10 20:19:45 +00:00
Nick Mathewson
954570486f Resolve a FIXME: use identity comparison, not nickname comparison, to
choose circuit ID types.  This is important because our view of "the
nickname of the router on the other side of this connection" is
skewed, and depends on whether we think the other rotuer is
verified--and there's no way to know whether another router thinks you
are verified.

For backward compatibility, we notice when the other router chooses
the same circuit ID type as us (because it's running an old version),
and switch our type to be polite.


svn:r2797
2004-11-10 20:14:37 +00:00
Nick Mathewson
35d0d3c050 Note a pre6 item
svn:r2796
2004-11-10 20:01:38 +00:00
Nick Mathewson
ec49905fb8 When we think we have no bandwidth, guess that we will run for 1 day.
svn:r2795
2004-11-10 19:32:44 +00:00
Nick Mathewson
9c22b428bf Clarify a warning about /.tor
svn:r2794
2004-11-10 14:29:18 +00:00
Nick Mathewson
a43db78e8d Resolve FIXME items: make the kill-unattached-AP timeout symbolic
svn:r2793
2004-11-10 14:28:47 +00:00
Nick Mathewson
c9af37d1ba Resolve FIXME items: make circuit_free_cpath_node static
svn:r2792
2004-11-10 14:28:04 +00:00
Nick Mathewson
fde4129ac3 Resolve FIXME items: clarify two XXXX comments for 009
svn:r2791
2004-11-10 14:27:26 +00:00
Nick Mathewson
aa1c0c4d67 Resolve FIXME items: fix assert failure on malformed socks4a qreuests. (bug reported by Anna Shubina wrt old Netscapes)
svn:r2790
2004-11-10 14:26:34 +00:00
Nick Mathewson
8de9cfe184 Resolve FIXME items: make expand_filename handle ~ and ~username
svn:r2789
2004-11-10 14:23:31 +00:00
Roger Dingledine
987cb2b93a when you cast MAX_UINT to an int it confuses the users
svn:r2788
2004-11-10 09:09:15 +00:00
Roger Dingledine
23a69fde8e bump us to 0.0.9pre6-cvs
svn:r2787
2004-11-10 09:02:07 +00:00
Nick Mathewson
c1bf171ed8 Fix a few bugs in accounting: parse bw_accounting correctly; set end time of continued interval; record used bandwidth on state change.
svn:r2785
2004-11-10 04:19:53 +00:00
Roger Dingledine
df671e09cc don't install tor-control.py, just ship it
svn:r2784
2004-11-10 04:06:24 +00:00
Roger Dingledine
646903542a make nick's config patch build
svn:r2783
2004-11-10 03:48:38 +00:00
Peter Palfrader
40f463ec9f Log at level notice of higher, not warn or higher. Thanks arma
svn:r2781
2004-11-10 03:46:06 +00:00
Peter Palfrader
bc932f555e Change the description slightly, to say "don't rely on the current Tor network
if you really need strong anonymity", instead of "Tor will not provide
anonymity currently".


svn:r2780
2004-11-10 03:45:34 +00:00
Peter Palfrader
e5fd4c026c No longer use --pidfile, --logfile, and --runasdaemon command line options. Set them in the configfile instead.
svn:r2779
2004-11-10 03:42:06 +00:00
Nick Mathewson
1013abd27f Validate log options during options_validate(). Reject unrecognized log types like "Log notice magic-twanger". Also, make sure User and Group stay the same, and do not crash when somebody tries to change PidFile to NULL.
svn:r2778
2004-11-10 03:40:30 +00:00
Roger Dingledine
c549be0815 hack the tor.sh so it uses the new log format even on the command-line
svn:r2777
2004-11-10 03:37:06 +00:00
Peter Palfrader
9921ce7c58 Make sure all patches apply cleanly
svn:r2776
2004-11-10 03:30:51 +00:00
Peter Palfrader
967235684e 04_fix_test can be backed out again, it was a backport from cvs to the package
svn:r2775
2004-11-10 03:27:52 +00:00
Peter Palfrader
b91e167dcd Prepare for a new upstream release
svn:r2774
2004-11-10 03:26:52 +00:00
Roger Dingledine
af9683501c make abbreviations case-insensitive (thanks weasel)
svn:r2773
2004-11-10 03:22:49 +00:00
Roger Dingledine
d9a74cd0af make it more obvious that we have just told them their new torrc log line.
svn:r2772
2004-11-10 03:08:03 +00:00
Roger Dingledine
c03a3eaed0 weaken our anonymity warning a little bit more
svn:r2771
2004-11-10 02:58:27 +00:00
Roger Dingledine
e5229a214c ship the tarball with a minimal cflags, since gcc's vary so much
svn:r2770
2004-11-10 02:50:02 +00:00
Nick Mathewson
4cdddcc13d Remvove an XXX
svn:r2769
2004-11-10 02:02:06 +00:00