Add LookupHost expr lib func (#1775)

This commit is contained in:
ThinkChaos 2022-10-26 05:17:48 -04:00 committed by GitHub
parent 2088bb1f91
commit 22479a289d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,6 +64,7 @@ func GetExprEnv(ctx map[string]interface{}) map[string]interface{} {
"XMLGetNodeValue": XMLGetNodeValue, "XMLGetNodeValue": XMLGetNodeValue,
"IpToRange": IpToRange, "IpToRange": IpToRange,
"IsIPV6": IsIPV6, "IsIPV6": IsIPV6,
"LookupHost": net.LookupHost,
"GetDecisionsCount": GetDecisionsCount, "GetDecisionsCount": GetDecisionsCount,
"GetDecisionsSinceCount": GetDecisionsSinceCount, "GetDecisionsSinceCount": GetDecisionsSinceCount,
"Sprintf": fmt.Sprintf, "Sprintf": fmt.Sprintf,