mirror of
https://github.com/wownero/i2p-zero.git
synced 2026-10-18 07:41:40 +02:00
readme error corrected for client.create syntax
This commit is contained in:
@@ -125,7 +125,7 @@ specified host and port. Note that the base 32 I2P destination address determini
|
||||
|
||||
#### Create a tunnel that listens for connections on localhost on the specified port and forwards connections over I2P to the specified destination public key.
|
||||
|
||||
`tunnel-control.sh client.create <local port> <I2P destination public key>`
|
||||
`tunnel-control.sh client.create <I2P destination> <local port>`
|
||||
|
||||
|
||||
#### Close the tunnel listening for connections on the specified port. Returns "OK".
|
||||
|
||||
@@ -100,7 +100,7 @@ public class RouterWrapper {
|
||||
try {
|
||||
|
||||
while(true) {
|
||||
if(router.isAlive()) {
|
||||
if(router.isAlive()) {
|
||||
try {
|
||||
File routerConfigFile = new File(i2PBaseDir, "router.config");
|
||||
if(!(routerConfigFile.exists() && routerConfigFile.canRead())) {
|
||||
|
||||
@@ -532,9 +532,9 @@ public class TunnelControl implements Runnable {
|
||||
}
|
||||
|
||||
case "client.create": {
|
||||
String destPubKey = args[1];
|
||||
String dest = args[1];
|
||||
int port = Integer.parseInt(args[2]);
|
||||
var clientTunnel = new ClientTunnel(destPubKey, port);
|
||||
var clientTunnel = new ClientTunnel(dest, port);
|
||||
clientTunnel.start();
|
||||
tunnelList.addTunnel(clientTunnel);
|
||||
out.println(clientTunnel.port);
|
||||
|
||||
Reference in New Issue
Block a user