Skip to content

Commit

Permalink
Added default i2p proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
PlasmaPower committed Jan 21, 2016
1 parent b058e85 commit 4a2d3d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/btfs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,10 @@ btfs_init(struct fuse_conn_info *conn) {
se.strict_end_game_mode = false;
se.announce_to_all_trackers = true;
se.announce_to_all_tiers = true;

if (params.proxy == NULL && params.proxy_type != NULL && strcmp(params.proxy_type, "i2p") == 0) {
params.proxy = "127.0.0.1:7656";
}

if (params.proxy != NULL) {
se.force_proxy = true;
Expand Down

0 comments on commit 4a2d3d4

Please sign in to comment.