diff options
author | Roger Dingledine <arma@torproject.org> | 2004-08-08 05:26:13 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-08-08 05:26:13 +0000 |
commit | 292e9c55670c3b86fff695ef481731e5e57195c4 (patch) | |
tree | 879c7bd80d69583e38a1d05cbeedbe656b20ce6c /src/or | |
parent | 26f8a5e3de6a02d7349d5e5548a161b4a0cb6f18 (diff) | |
download | tor-292e9c55670c3b86fff695ef481731e5e57195c4.tar tor-292e9c55670c3b86fff695ef481731e5e57195c4.tar.gz |
reject the default edonkey, kazaa, gnutella ports
to slow the coming flood
svn:r2195
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/connection_edge.c | 1 | ||||
-rw-r--r-- | src/or/router.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index 6dec49e9f..18c866613 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -914,7 +914,6 @@ void connection_exit_connect(connection_t *conn) { log_fn(LOG_WARN,"tell roger: newly connected conn had data waiting!"); // connection_start_writing(conn); } -// connection_process_inbuf(conn); connection_watch_events(conn, POLLIN); /* also, deliver a 'connected' cell back through the circuit. */ diff --git a/src/or/router.c b/src/or/router.c index 456b5832c..fe7dc95fe 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -418,7 +418,7 @@ void router_upload_dir_desc_to_dirservers(void) { directory_post_to_dirservers(DIR_PURPOSE_UPLOAD_DIR, s, strlen(s)); } -#define DEFAULT_EXIT_POLICY "reject 0.0.0.0/8,reject 169.254.0.0/16,reject 127.0.0.0/8,reject 192.168.0.0/16,reject 10.0.0.0/8,reject 172.16.0.0/12,accept *:20-22,accept *:53,accept *:79-81,accept *:110,accept *:143,accept *:443,accept *:873,accept *:993,accept *:995,accept *:1024-65535,reject *:*" +#define DEFAULT_EXIT_POLICY "reject 0.0.0.0/8,reject 169.254.0.0/16,reject 127.0.0.0/8,reject 192.168.0.0/16,reject 10.0.0.0/8,reject 172.16.0.0/12,accept *:20-22,accept *:53,accept *:79-81,accept *:110,accept *:143,accept *:443,accept *:873,accept *:993,accept *:995,reject *:4661-4662,reject *:1214,reject *:6346,accept *:1024-65535,reject *:*" /** Set the exit policy on <b>router</b> to match the exit policy in the * current configuration file. If the exit policy doesn't have a catch-all |