Skip to content

Commit

Permalink
Merge pull request #60 from fkie-cad/base-server-config-fix
Browse files Browse the repository at this point in the history
base server config bug fix
  • Loading branch information
giga-a authored Mar 4, 2024
2 parents d927b3b + fc88412 commit 5b3bfbe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions honeypots/base_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ class BaseServer(ABC):
def __init__(self, **kwargs):
self.auto_disabled = None
self.process = None
self.uuid = f"honeypotslogger_{__class__.__name__}_{str(uuid4())[:8]}"
self.uuid = f"honeypotslogger_{self.__class__.__name__}_{str(uuid4())[:8]}"
self.config = kwargs.get("config", "")
if self.config:
self.logs = setup_logger(__class__.__name__, self.uuid, self.config)
self.logs = setup_logger(self.__class__.__name__, self.uuid, self.config)
set_local_vars(self, self.config)
else:
self.logs = setup_logger(__class__.__name__, self.uuid, None)
self.logs = setup_logger(self.__class__.__name__, self.uuid, None)
self.ip = kwargs.get("ip", None) or (hasattr(self, "ip") and self.ip) or "0.0.0.0"
self.port = (
(kwargs.get("port", None) and int(kwargs.get("port", None)))
Expand Down

0 comments on commit 5b3bfbe

Please sign in to comment.