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

Fix bug in link-local unmarshalling #1564

Merged
merged 1 commit into from
Nov 21, 2016
Merged

Fix bug in link-local unmarshalling #1564

merged 1 commit into from
Nov 21, 2016

Conversation

aboch
Copy link
Contributor

@aboch aboch commented Nov 21, 2016

Related to moby/moby#28606

Signed-off-by: Alessandro Boch [email protected]

@mavenugo
Copy link
Contributor

LGTM.

am surprised that this day-1 issue was not caught till now. Better late than never.

epi.llAddrs = make([]*net.IPNet, 0, len(list))
for _, llS := range list {
ll, err := types.ParseCIDR(llS)
ll, err := types.ParseCIDR(llS.(string))
if err != nil {
return types.InternalErrorf("failed to decode endpoint interface link-local address (%s) after json unmarshal: %v", llS, err)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you also fix here ?

@dongluochen
Copy link
Contributor

lgtm

@mavenugo
Copy link
Contributor

CI is timing out and is not related to this PR. merging

@mavenugo mavenugo merged commit dd0ddde into moby:master Nov 21, 2016
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.

3 participants