From 2bab7d91da7c8fd97e8a414989f42c8b8dfd2b69 Mon Sep 17 00:00:00 2001 From: Fionera Date: Thu, 16 Mar 2023 14:45:46 +0100 Subject: [PATCH] fix: Use substring instead of substr alias Change-Id: I871df3e71548bd7136882646849d88eec847f903 Reviewed-on: https://review.monogon.dev/c/NetMeta/+/1349 Reviewed-by: Leopold Schabel --- deploy/single-node/schema/functions.cue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/single-node/schema/functions.cue b/deploy/single-node/schema/functions.cue index 91a0e74..c3cbf86 100644 --- a/deploy/single-node/schema/functions.cue +++ b/deploy/single-node/schema/functions.cue @@ -142,7 +142,7 @@ function: ParseGoFlowAddress: { -- endsWith IPv6v4NullPadding endsWith(reinterpret(Address, 'FixedString(16)'), repeat(unhex('00'), 12)), -- prepend ::ffff: - CAST(toFixedString(repeat(unhex('00'), 10) || repeat(unhex('FF'), 2) || substr(reinterpret(Address, 'FixedString(16)'), 1, 4), 16) AS IPv6), + CAST(toFixedString(repeat(unhex('00'), 10) || repeat(unhex('FF'), 2) || substring(reinterpret(Address, 'FixedString(16)'), 1, 4), 16) AS IPv6), CAST(Address AS IPv6) ) """#