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

Unable to parse IPv6 addresses #6

Closed
diamondzxd opened this issue Oct 30, 2023 · 2 comments
Closed

Unable to parse IPv6 addresses #6

diamondzxd opened this issue Oct 30, 2023 · 2 comments

Comments

@diamondzxd
Copy link

Example usage :

mscp -n 48 test.zip root@[24X2:1fX0:8X00:4Xd::3:0]:/home/ returns the error :
mscp_connect: ssh.c:167:ssh_init_session: failed to connect ssh server: Failed to resolve hostname [2402 (Name does not resolve)

Whereas, the implementation of scp works on the square brackets.

@upa
Copy link
Owner

upa commented Oct 31, 2023

Ah! thanks, I will fix.

upa added a commit that referenced this issue Nov 1, 2023
This commit fixes issue #6. Now mscp command correctly parses
[x::x] IPv6 address notation in hostname.
upa added a commit that referenced this issue Nov 1, 2023
This commit fixes issue #6. Now mscp command correctly parses
[x::x] IPv6 address notation in hostname.
@upa
Copy link
Owner

upa commented Nov 1, 2023

commit 8e590da fixes this issue, and mscp v0.1.2 including the fix is released.

~ > mscp
mscp v0.1.2: copy files over multiple ssh connections

Usage: mscp [vqDHdNh] [-n nr_conns] [-m coremask] [-u max_startups]
            [-s min_chunk_sz] [-S max_chunk_sz] [-a nr_ahead] [-b buf_sz]
            [-l login_name] [-p port] [-F ssh_config] [-i identity_file]
            [-c cipher_spec] [-M hmac_spec] [-C compress] [-g congestion]
            source ... target

~ > mscp 100m.img [2001:200:0:x::x]:
[============================================] 100% 100.0MB/100.0MB   25.0MB/s  00:04 

@upa upa closed this as completed Nov 1, 2023
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

No branches or pull requests

2 participants