Commit 40e5c422 authored by Ramon Nou's avatar Ramon Nou
Browse files

add hostname

parent ef197ba9
Loading
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -1532,6 +1532,17 @@ class FwdDaemon:
    def hostfile(self):
        return self._hostfile

    @property
    def address(self):
        return self._address

    @property
    def hostname(self):
        """The network address this daemon registered with (e.g. 'lo:54321').
        Useful for filtering hosts-file lines that belong to this daemon.
        """
        return self._address

class FwdClient:
    """
    A class to represent a GekkoFS client process with a patched LD_PRELOAD.