mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-16 13:51:42 +08:00
address code review comments
This commit is contained in:
@@ -171,7 +171,7 @@ func ShouldPublishPeerPorts(serverNode *models.Node) bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
// NormalCidr - returns the first address of CIDR
|
// NormalCIDR - returns the first address of CIDR
|
||||||
func NormalizeCIDR(address string) (string, error) {
|
func NormalizeCIDR(address string) (string, error) {
|
||||||
ip, IPNet, err := net.ParseCIDR(address)
|
ip, IPNet, err := net.ParseCIDR(address)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user