Use net.IP.IsLoopback() to match loopback addresses#5160
Use net.IP.IsLoopback() to match loopback addresses#5160estesp merged 1 commit intocontainerd:masterfrom
Conversation
|
Hi @MadhavJivrajani. Thanks for your PR. I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
Build succeeded.
|
|
@MadhavJivrajani: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/retest |
|
@MadhavJivrajani: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
AkihiroSuda
left a comment
There was a problem hiding this comment.
Thanks, but please use net.SplitHostPort
There was a problem hiding this comment.
@dmcgowan Was there a specific reason to return false for 127.1.1.1 ? Is there any security concern?
|
Hey @AkihiroSuda, any reason why just EDIT: Sorry about that, I misunderstood. |
|
Build succeeded.
|
|
Build succeeded.
|
|
Build succeeded.
|
- changed the `MatchLocalhost` function in remotes/docker/registry.go - Make use of SplitHostPort to split host and port number - Added additional tests for modified code in remotes/docker/registry_test.go - Note: this does not handle mathcing of IP addresses in octal, decimal or hex format or a mix of these. Fixes: containerd#5129 Signed-off-by: Madhav Jivrajani <[email protected]>
|
Build succeeded.
|
MatchLocalhostfunction in remotes/docker/registry.goFixes: #5129
Signed-off-by: Madhav Jivrajani [email protected]