Add options for IPv4/IPv6 selection in client mode
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 16.6k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
I have IPv4/IPv6 dual stack systems where the IPv6 will be used by default. But sometimes the response time of IPv6 link is not so good as IPv4.
Will you please consider adding two command line options -4 and -6 to client-side code which enables explicit usage of IPv4 or IPv6 addresses?
OpenSSH client just has two options to control similar behavior.
-4 Forces ssh to use IPv4 addresses only.
-6 Forces ssh to use IPv6 addresses only.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the client-side command-line parsing and address-selection code in the Go repository. Trace how client connections choose IPv4 or IPv6 addresses, then check existing client or command-line tests if available. Done means clients can explicitly select IPv4 with -4 or IPv6 with -6, matching the requested behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli, networking
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100