libanonvpn icon indicating copy to clipboard operation
libanonvpn copied to clipboard

Detect if using i2p-zero, disable I2CP Check in that case

Open eyedeekay opened this issue 5 years ago • 0 comments

If the user is using i2p-zero for I2P, chances are they don't have an I2CP port exposed, which we use to detect the presence of an I2P router before attempting to connect to SAM. That way if the router is present but SAM isn't enabled we can advise the user to enable it. So instead, we need to check for I2CP, then attempt to connect to SAM. That way we have 4 states. No I2CP or SAM, I2CP but not SAM, SAM but not I2CP, and I2CP and SAM. We can adjust the action we take or advise for the user based on this state, in the case of SAM but not I2CP we can assume the I2P router is i2p-zero.

eyedeekay avatar Jan 06 '20 02:01 eyedeekay