summaryrefslogtreecommitdiffstats
path: root/api/utils/influx.py
diff options
context:
space:
mode:
Diffstat (limited to 'api/utils/influx.py')
-rw-r--r--api/utils/influx.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/utils/influx.py b/api/utils/influx.py
index 52a90b61c..1d56c95fd 100644
--- a/api/utils/influx.py
+++ b/api/utils/influx.py
@@ -29,7 +29,7 @@ def get_data_db_client():
def _get_ip(url):
- return urlsplit(url).netloc.split(':')[0]
+ return urlsplit(url).hostname
def _write_data(measurement, field, timestamp, tags):