readme error corrected for client.create syntax

pull/35/head
knaccc 5 years ago
parent 3cd42e9832
commit ba43496762

@ -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);

Loading…
Cancel
Save