Fixed for i2p

This commit is contained in:
jpk68
2026-03-13 16:12:03 +01:00
committed by SChernykh
parent 964e4a6163
commit 34f21e6236
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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) ## 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. 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. 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: Add a server tunnel to allow inbound connections from peers:
+1
View File
@@ -408,6 +408,7 @@ bool Params::process_arg(const std::vector<std::string>& arg)
if (s == "auto") m_socks5ProxyType = ProxyType::AUTO; if (s == "auto") m_socks5ProxyType = ProxyType::AUTO;
if (s == "plain") m_socks5ProxyType = ProxyType::PLAIN; if (s == "plain") m_socks5ProxyType = ProxyType::PLAIN;
if (s == "tor") m_socks5ProxyType = ProxyType::TOR; if (s == "tor") m_socks5ProxyType = ProxyType::TOR;
if (s == "i2p") m_socks5ProxyType = ProxyType::I2P;
return m_socks5ProxyType != ProxyType::INVALID; return m_socks5ProxyType != ProxyType::INVALID;
} }