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

feat: allow user to specify destination port via resolve flag #801

Merged
merged 14 commits into from
Feb 22, 2023

Conversation

qweeah
Copy link
Contributor

@qweeah qweeah commented Feb 13, 2023

This PR enhances --resolve flag by allowing users to specify destination port during DNS lookup.

Resolves #790.

Signed-off-by: Billy Zha jinzha1@microsoft.com

Signed-off-by: Billy Zha <jinzha1@microsoft.com>
@codecov-commenter
Copy link

codecov-commenter commented Feb 13, 2023

Codecov Report

❗ No coverage uploaded for pull request base (main@8995628). Click here to learn what that means.
The diff coverage is 76.19%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@           Coverage Diff           @@
##             main     #801   +/-   ##
=======================================
  Coverage        ?   63.84%           
=======================================
  Files           ?       21           
  Lines           ?      852           
  Branches        ?        0           
=======================================
  Hits            ?      544           
  Misses          ?      265           
  Partials        ?       43           
Impacted Files Coverage Δ
internal/net/net.go 50.00% <50.00%> (ø)
cmd/oras/internal/option/remote.go 70.53% <82.35%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
@qweeah qweeah marked this pull request as ready for review February 13, 2023 01:54
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
@qweeah qweeah marked this pull request as draft February 13, 2023 07:53
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
@qweeah qweeah marked this pull request as ready for review February 21, 2023 03:08
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
cmd/oras/internal/option/remote.go Outdated Show resolved Hide resolved
cmd/oras/internal/option/remote.go Outdated Show resolved Hide resolved
cmd/oras/internal/option/remote.go Outdated Show resolved Hide resolved
cmd/oras/internal/option/remote.go Outdated Show resolved Hide resolved
Copy link
Contributor

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shizhMSFT shizhMSFT merged commit fb68c73 into oras-project:main Feb 22, 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

Successfully merging this pull request may close these issues.

Redirect both the hostname and port for TCP connections
3 participants