Skip to content

Commit

Permalink
fix #19 Cannot unbox int - set the default port to 22 in the scp example
Browse files Browse the repository at this point in the history
  • Loading branch information
Demayl committed Jan 12, 2025
1 parent 14878e6 commit c397baa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/scp-download.raku
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use SSH::LibSSH;

sub MAIN($host, $user, $remote, $local, Int :$port, Str :$password) {
sub MAIN($host, $user, $remote, $local, Int :$port=22, Str :$password) {
my $session = await SSH::LibSSH.connect(:$host, :$user, :$port, :$password, compression-level => 7);
await $session.scp-download($remote, $local);
$session.close;
Expand Down
2 changes: 1 addition & 1 deletion examples/scp-upload.raku
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use SSH::LibSSH;

sub MAIN($host, $user, $local, $remote, Int :$port, Str :$password) {
sub MAIN($host, $user, $local, $remote, Int :$port=22, Str :$password) {
my $session = await SSH::LibSSH.connect(:$host, :$user, :$port, :$password);
await $session.scp-upload($local, $remote);
$session.close;
Expand Down

0 comments on commit c397baa

Please sign in to comment.