Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

temporary fix for /32 CIDR networking issue #41

Merged
merged 4 commits into from
Oct 26, 2018
Merged

temporary fix for /32 CIDR networking issue #41

merged 4 commits into from
Oct 26, 2018

Conversation

lumjjb
Copy link
Member

@lumjjb lumjjb commented Oct 24, 2018

Fix by setting mask to "1" if given "32".

To help alleviate #40

Signed-off-by: Brandon Lum [email protected]

@lumjjb
Copy link
Member Author

lumjjb commented Oct 24, 2018

New golint in travis requires newer version of golang, updating to v1.11+

Copy link
Contributor

@ricarkol ricarkol left a comment

Choose a reason for hiding this comment

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

lgtm. Just add one big warning there. We must not forget about this temp fix. This is the best example I can think of technical debt.

// the same subnet... (working on a fix for mask:0)
cidr := strconv.Itoa(network.MaskCIDR(mask))
if cidr == "32" {
cidr = "1"
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a big warning mentioning that this is happening.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, I meant a warning("cidr was 32, but will be treated as 1")

@ricarkol ricarkol merged commit 4b1eb80 into master Oct 26, 2018
@lumjjb lumjjb deleted the fix-network branch April 8, 2019 21:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants