Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

define ports by amount, not individually - v2 #662

Merged
merged 3 commits into from
Feb 17, 2024

Conversation

qk-santi
Copy link
Contributor

Defining the number of ports for transfer connections is a bit cumbersome, especially if you want to create quite a few ones

croc send --ports 9009,9010,9011,9012,9013,9014,9015,9016,9017 my_file.gzip

Switched to:

Define base port (if different than default) + number of parallel connections
croc send --port 9009 --transfers 8 my_file.gzip
croc send --transfers 8 my_file.gzip

Fixes #617

Related to PR #660

@schollz
Copy link
Owner

schollz commented Feb 17, 2024

this works, thanks!!

@schollz schollz merged commit 508e0be into schollz:main Feb 17, 2024
2 checks passed
@jathek
Copy link

jathek commented Feb 20, 2024

Could this be added to the relay command as well? That still uses --ports and requires manually typing each one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Defining ports is a bit cumbersome
3 participants