From 867bc8d366523d03f6ab3f6154c4a6a1cd182bf5 Mon Sep 17 00:00:00 2001 From: Sky Brewer Date: Tue, 2 Apr 2024 10:16:20 +0200 Subject: [PATCH] Set hostname as default recceiver id --- server/recceiver/cfstore.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/recceiver/cfstore.py b/server/recceiver/cfstore.py index 09d6096..03e5cbe 100755 --- a/server/recceiver/cfstore.py +++ b/server/recceiver/cfstore.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- import logging +import socket _log = logging.getLogger(__name__) from zope.interface import implementer @@ -33,7 +34,7 @@ __all__ = ['CFProcessor'] RECCEIVER_ID_KEY = 'recceiverID' -RECCEIVER_ID_DEFAULT = 'recceiver0' +RECCEIVER_ID_DEFAULT = socket.gethostname() @implementer(interfaces.IProcessor) class CFProcessor(service.Service):