mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-10 03:18:31 +00:00
chore: generate
This commit is contained in:
parent
51a9b0baad
commit
04c46117b9
1 changed files with 4 additions and 1 deletions
|
|
@ -171,7 +171,10 @@ function ipPrefix(ip: string | undefined) {
|
|||
const full = [...headParts, ...new Array(missing).fill("0"), ...tailParts]
|
||||
if (full.length !== 8) return undefined
|
||||
|
||||
const prefix = full.slice(0, 4).map((part) => part.toLowerCase().replace(/^0+(?=.)/, "")).join(":")
|
||||
const prefix = full
|
||||
.slice(0, 4)
|
||||
.map((part) => part.toLowerCase().replace(/^0+(?=.)/, ""))
|
||||
.join(":")
|
||||
return `${prefix}::/64`
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue