Skip to content

[BUG] LTsock fails on darwin #236

@jiegec

Description

@jiegec

Describe the bug
A clear and concise description of what the bug is.
LTsock fails on darwin.

To Reproduce
Steps to reproduce the behavior:

  1. Run 'LTsock' in 'tests' folder
  2. See error

Expected behavior
A clear and concise description of what you expected to happen.
It should pass.

Program output
If applicable, paste program output text here to help explain your problem.

LTsock ... ERROR!!!  can't get IP address for macbookair
               Errno 0: Undefined error: 0

Environment (please complete the following information):

  • Kernel: Darwin 21.5.0
  • OS: macOS 12.4
  • lsof Version: 4.95.0
  • Origin: built from git master

Additional context
Add any other context about the problem here.

In Linux, the hostname is usually bound to 127.0.1.1 in /etc/hosts. But it is not the case in macOS.

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