diff --git a/docs/I2P.MD b/docs/I2P.MD index 1c87bca..49761a5 100644 --- a/docs/I2P.MD +++ b/docs/I2P.MD @@ -13,7 +13,7 @@ P2Pool has several command-line options that should be used for I2P setup: ## Setting up I2P tunnels for P2Pool (i2pd on Linux) Follow [these instructions](https://docs.i2pd.website/en/latest/user-guide/install/) to install i2pd on your system. -First, ensure both the SOCKS proxy and SAM bridge tunnels are enabled (as they should be by default). See [here](https://docs.i2pd.website/en/latest/user-guide/configuration/) for more information. +First, ensure the SOCKS proxy tunnel is enabled (as it should be by default). See [here](https://docs.i2pd.website/en/latest/user-guide/configuration/) for more information. You will need to modify some lines in the `tunnels.conf` file, usually located in `/var/lib/i2pd/tunnels.conf` on Linux. Add a server tunnel to allow inbound connections from peers: diff --git a/src/params.cpp b/src/params.cpp index 1f19564..8b3057e 100644 --- a/src/params.cpp +++ b/src/params.cpp @@ -408,6 +408,7 @@ bool Params::process_arg(const std::vector& arg) if (s == "auto") m_socks5ProxyType = ProxyType::AUTO; if (s == "plain") m_socks5ProxyType = ProxyType::PLAIN; if (s == "tor") m_socks5ProxyType = ProxyType::TOR; + if (s == "i2p") m_socks5ProxyType = ProxyType::I2P; return m_socks5ProxyType != ProxyType::INVALID; }