feat:change common_action value filling logic
This commit is contained in:
@@ -88,6 +88,7 @@ public class IpLookupUtils {
|
||||
String fileName = Joiner.on(LOCATION_SEPARATOR).useForNull("").join(ipBuiltinknowlegeBaseMeta.getName(), ipBuiltinknowlegeBaseMeta.getFormat());
|
||||
knowledgeMetaCache.put(fileName, ipBuiltinknowlegeBaseMeta);
|
||||
}
|
||||
|
||||
final KnowlegeBaseMeta ipUserDefinedknowlegeBaseMeta = getKnowlegeBaseMeta(FlowWriteConfig.IP_USER_DEFINED_KD_ID);
|
||||
if (!currentSha256IpUserDefined.equals(ipUserDefinedknowlegeBaseMeta.getSha256())) {
|
||||
String fileName = Joiner.on(LOCATION_SEPARATOR).useForNull("").join(ipUserDefinedknowlegeBaseMeta.getName(), ipUserDefinedknowlegeBaseMeta.getFormat());
|
||||
@@ -163,9 +164,7 @@ public class IpLookupUtils {
|
||||
* @return 过滤参数
|
||||
*/
|
||||
private static String getFilterParameter() {
|
||||
|
||||
String expr = "[?(@.version=='latest')][?(@.name in ('ip_builtin','ip_user_defined','asn_builtin'))]";
|
||||
|
||||
return expr;
|
||||
}
|
||||
|
||||
@@ -205,8 +204,4 @@ public class IpLookupUtils {
|
||||
return knowlegeBaseMeta;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
final String countryLookup = IpLookupUtils.getIpLookup().asnLookup("10.64.10.7");
|
||||
System.out.println(countryLookup);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user