forked from I2P_Developers/i2p.i2p
i2psnark standalone: Translate I2CP connect error
This commit is contained in:
@@ -590,8 +590,12 @@ public class Snark
|
|||||||
|
|
||||||
private void x_startTorrent() {
|
private void x_startTorrent() {
|
||||||
boolean ok = _util.connect();
|
boolean ok = _util.connect();
|
||||||
if (!ok)
|
if (!ok) {
|
||||||
fatalRouter("Unable to connect to I2P", null);
|
if (_util.getContext().isRouterContext())
|
||||||
|
fatalRouter(_util.getString("Unable to connect to I2P"), null);
|
||||||
|
else
|
||||||
|
fatalRouter(_util.getString("Unable to connect to I2P") + ": " + _util.getI2CPHost() + ':' + _util.getI2CPPort(), null);
|
||||||
|
}
|
||||||
if (coordinator == null) {
|
if (coordinator == null) {
|
||||||
I2PServerSocket serversocket = _util.getServerSocket();
|
I2PServerSocket serversocket = _util.getServerSocket();
|
||||||
if (serversocket == null)
|
if (serversocket == null)
|
||||||
|
Reference in New Issue
Block a user