Explorar o código

Add LookupHost expr lib func (#1775)

ThinkChaos %!s(int64=2) %!d(string=hai) anos
pai
achega
22479a289d
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      pkg/exprhelpers/exprlib.go

+ 1 - 0
pkg/exprhelpers/exprlib.go

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