Skip to content

Local IP address resolution fails on macOS #16

Description

@sysophost

The agent uses socket.gethostbyname() to retrieve the IP address of the host by looking up the hostname, returned from socket.gethostname(), against either the local resolver or the hosts file.

On macOS the device hostname is not present in /etc/hosts by default, so looking up the hostname fails, causing the agent to exit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions