mirror of
https://github.com/nestriness/cdc-file-transfer.git
synced 2026-01-30 10:35:37 +02:00
[cdc_rsync] [cdc_stream] Remove SSH port argument (#41)
This CL removes the port arguments for both tools. The port argument can also be specified via the ssh-command and scp-command flags. In fact, if a port is specified by both port flags and ssh/scp commands, they interfere with each other. For ssh, the one specified in ssh-command wins. For scp, the one specified in scp-command wins. To fix this, one would have to parse scp-command and remove the port arg there. Or we could just remove the ssh-port arg. This is what this CL does. Note that if you need a custom port, it's very likely that you also have to define custom ssh and scp commands.
This commit is contained in:
@@ -45,9 +45,6 @@ message StartSessionRequest {
|
||||
string user_host = 7;
|
||||
// Remote directory where to mount the streamed directory.
|
||||
string mount_dir = 8;
|
||||
// SSH port to use while connecting to the remote instance.
|
||||
// Optional, falls back to port 22 (default SSH port).
|
||||
int32 port = 9;
|
||||
// SSH command to connect to the remote instance.
|
||||
// Optional, falls back to searching ssh.
|
||||
string ssh_command = 10;
|
||||
@@ -55,7 +52,7 @@ message StartSessionRequest {
|
||||
// Optional, falls back to searching scp.
|
||||
string scp_command = 11;
|
||||
|
||||
reserved 1, 3, 4;
|
||||
reserved 1, 3, 4, 9;
|
||||
}
|
||||
|
||||
message StartSessionResponse {}
|
||||
|
||||
Reference in New Issue
Block a user