Skip to content

Commit

Permalink
minor change in strid name
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDavid committed Jun 14, 2024
1 parent 9e1938f commit 516f053
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pastisbroker/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ def strid(self):
if self.netid == b"PROXY":
return "PROXY"
else:
return f"CLI-{self.id}-{self._engine.SHORT_NAME if self._engine else 'N-A'}"
name = self.hostname if self.hostname else "CLI"
engine = self._engine.SHORT_NAME if self._engine else 'N-A'
return f"{name}-{self.id}-{engine}"

def is_new_seed(self, seed: bytes) -> bool:
"""
Expand Down

0 comments on commit 516f053

Please sign in to comment.