lsof icon indicating copy to clipboard operation
lsof copied to clipboard

[BUG] LTsock fails on darwin

Open jiegec opened this issue 2 years ago • 0 comments

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.

jiegec avatar Jul 14 '22 09:07 jiegec