mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
Filetransfer port is u16
This commit is contained in:
@@ -72,7 +72,7 @@ pub trait FileTransfer {
|
|||||||
///
|
///
|
||||||
/// Connect to the remote server
|
/// Connect to the remote server
|
||||||
|
|
||||||
fn connect(&mut self, address: String, port: usize, username: Option<String>, password: Option<String>) -> Result<(), FileTransferError>;
|
fn connect(&mut self, address: String, port: u16, username: Option<String>, password: Option<String>) -> Result<(), FileTransferError>;
|
||||||
|
|
||||||
/// ### disconnect
|
/// ### disconnect
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ impl FileTransfer for SftpFileTransfer {
|
|||||||
fn connect(
|
fn connect(
|
||||||
&mut self,
|
&mut self,
|
||||||
address: String,
|
address: String,
|
||||||
port: usize,
|
port: u16,
|
||||||
username: Option<String>,
|
username: Option<String>,
|
||||||
password: Option<String>,
|
password: Option<String>,
|
||||||
) -> Result<(), FileTransferError> {
|
) -> Result<(), FileTransferError> {
|
||||||
|
|||||||
Reference in New Issue
Block a user