mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-02-20 09:26:37 +00:00
Fix msp command via JNI
This commit is contained in:
parent
b94378ae97
commit
2cad7f4f8e
@ -643,11 +643,11 @@ public class ServalDCommand
|
||||
}
|
||||
|
||||
public static Process mspTunnnelCreate(String exec, int ip_port, int msp_port) throws IOException {
|
||||
return new ProcessBuilder(exec, "msp", "connect", "--forward="+ip_port, Integer.toString(msp_port)).start();
|
||||
return new ProcessBuilder(exec, "msp", "listen", "--forward="+ip_port, Integer.toString(msp_port)).start();
|
||||
}
|
||||
|
||||
public static Process mspTunnnelCreate(String exec, int ip_port, String serviceName, int msp_port) throws IOException {
|
||||
return new ProcessBuilder(exec, "msp", "connect", "--forward="+ip_port, "--service="+serviceName, Integer.toString(msp_port)).start();
|
||||
return new ProcessBuilder(exec, "msp", "listen", "--forward="+ip_port, "--service="+serviceName, Integer.toString(msp_port)).start();
|
||||
}
|
||||
|
||||
public static Process mspTunnelConnect(String exec, int ip_port, SubscriberId msp_sid, int msp_port) throws IOException {
|
||||
|
Loading…
x
Reference in New Issue
Block a user