Skip to content

Commit

Permalink
need to trim /128 on ipv6 addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
AshleyDumaine committed Jun 17, 2024
1 parent 44c8f84 commit 43db50f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cloud/linode/instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"os"
"slices"
"strconv"
"strings"
"sync"
"time"

Expand Down Expand Up @@ -55,7 +56,7 @@ func (nc *nodeCache) getInstanceAddresses(instance linodego.Instance, vpcips []s
}

if instance.IPv6 != "" {
ips = append(ips, nodeIP{ip: instance.IPv6, ipType: v1.NodeExternalIP})
ips = append(ips, nodeIP{ip: strings.TrimSuffix(instance.IPv6, "/128"), ipType: v1.NodeExternalIP})
}

return ips
Expand Down

0 comments on commit 43db50f

Please sign in to comment.