xbase-util 0.2.9__tar.gz → 0.3.1__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {xbase_util-0.2.9 → xbase_util-0.3.1}/PKG-INFO +1 -1
- {xbase_util-0.2.9 → xbase_util-0.3.1}/setup.py +1 -1
- {xbase_util-0.2.9 → xbase_util-0.3.1}/xbase_util/es_db_util.py +1 -1
- {xbase_util-0.2.9 → xbase_util-0.3.1}/xbase_util/geo_util.py +3 -1
- {xbase_util-0.2.9 → xbase_util-0.3.1}/xbase_util.egg-info/PKG-INFO +1 -1
- {xbase_util-0.2.9 → xbase_util-0.3.1}/README.md +0 -0
- {xbase_util-0.2.9 → xbase_util-0.3.1}/setup.cfg +0 -0
- {xbase_util-0.2.9 → xbase_util-0.3.1}/xbase_util/__init__.py +0 -0
- {xbase_util-0.2.9 → xbase_util-0.3.1}/xbase_util/db/__init__.py +0 -0
- {xbase_util-0.2.9 → xbase_util-0.3.1}/xbase_util/db/bean/ConfigBean.py +0 -0
- {xbase_util-0.2.9 → xbase_util-0.3.1}/xbase_util/db/bean/CurrentConfigBean.py +0 -0
- {xbase_util-0.2.9 → xbase_util-0.3.1}/xbase_util/db/bean/FlowBean.py +0 -0
- {xbase_util-0.2.9 → xbase_util-0.3.1}/xbase_util/db/bean/TaskTemplateBean.py +0 -0
- {xbase_util-0.2.9 → xbase_util-0.3.1}/xbase_util/db/bean/__init__.py +0 -0
- {xbase_util-0.2.9 → xbase_util-0.3.1}/xbase_util/db/dao/ConfigDao.py +0 -0
- {xbase_util-0.2.9 → xbase_util-0.3.1}/xbase_util/db/dao/CurrentConfigDao.py +0 -0
- {xbase_util-0.2.9 → xbase_util-0.3.1}/xbase_util/db/dao/FlowDao.py +0 -0
- {xbase_util-0.2.9 → xbase_util-0.3.1}/xbase_util/db/dao/TaskTemplateDao.py +0 -0
- {xbase_util-0.2.9 → xbase_util-0.3.1}/xbase_util/db/dao/__init__.py +0 -0
- {xbase_util-0.2.9 → xbase_util-0.3.1}/xbase_util/db/initsqlite3.py +0 -0
- {xbase_util-0.2.9 → xbase_util-0.3.1}/xbase_util/esreq.py +0 -0
- {xbase_util-0.2.9 → xbase_util-0.3.1}/xbase_util/handle_features_util.py +0 -0
- {xbase_util-0.2.9 → xbase_util-0.3.1}/xbase_util/pcap_util.py +0 -0
- {xbase_util-0.2.9 → xbase_util-0.3.1}/xbase_util/xbase_constant.py +0 -0
- {xbase_util-0.2.9 → xbase_util-0.3.1}/xbase_util/xbase_util.py +0 -0
- {xbase_util-0.2.9 → xbase_util-0.3.1}/xbase_util.egg-info/SOURCES.txt +0 -0
- {xbase_util-0.2.9 → xbase_util-0.3.1}/xbase_util.egg-info/dependency_links.txt +0 -0
- {xbase_util-0.2.9 → xbase_util-0.3.1}/xbase_util.egg-info/not-zip-safe +0 -0
- {xbase_util-0.2.9 → xbase_util-0.3.1}/xbase_util.egg-info/top_level.txt +0 -0
- {xbase_util-0.2.9 → xbase_util-0.3.1}/xbase_util_assets/GeoLite2-City.mmdb +0 -0
- {xbase_util-0.2.9 → xbase_util-0.3.1}/xbase_util_assets/arkimeparse.js +0 -0
@@ -35,7 +35,7 @@ class GeoUtil:
|
|
35
35
|
if value == "" or value is None:
|
36
36
|
return "IP_GEO_EMPTY"
|
37
37
|
else:
|
38
|
-
return value
|
38
|
+
return f"{value}"
|
39
39
|
|
40
40
|
def get_geo_by_ip(self, geo_map):
|
41
41
|
source_ip = geo_map["source.ip"]
|
@@ -63,6 +63,7 @@ class GeoUtil:
|
|
63
63
|
geo_map['source.ip_Location_Latitude'] = "IP_GEO_EMPTY"
|
64
64
|
geo_map["source.ip_Location_Longitude"] = "IP_GEO_EMPTY"
|
65
65
|
else:
|
66
|
+
source_ip_name=f"{source_ip_name}"
|
66
67
|
geo_map["source.ip_Country_IsoCode"] = source_ip_name
|
67
68
|
geo_map['source.ip_Country_Name'] = source_ip_name
|
68
69
|
geo_map["source.ip_Country_SpecificName"] = source_ip_name
|
@@ -96,6 +97,7 @@ class GeoUtil:
|
|
96
97
|
geo_map['destination.ip_Location_Latitude'] = "IP_GEO_EMPTY"
|
97
98
|
geo_map["destination.ip_Location_Longitude"] = "IP_GEO_EMPTY"
|
98
99
|
else:
|
100
|
+
destination_ip_name=f"{destination_ip_name}"
|
99
101
|
geo_map["destination.ip_Country_IsoCode"] = destination_ip_name
|
100
102
|
geo_map['destination.ip_Country_Name'] = destination_ip_name
|
101
103
|
geo_map["destination.ip_Country_SpecificName"] = destination_ip_name
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|