Skip to content

Commit

Permalink
step by step for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Jan 29, 2024
1 parent 2f0594a commit cc4c807
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/findssh/__init__.py
Expand Up @@ -13,7 +13,9 @@ def get_lan_ip() -> ipaddress.IPv4Address | ipaddress.IPv6Address:
ref: http://stackoverflow.com/a/23822431
"""

return ipaddress.ip_address(socket.gethostbyname(socket.gethostname()))
name = socket.gethostname()
host = socket.gethostbyname(name)
return ipaddress.ip_address(host)


def address2net(
Expand Down

0 comments on commit cc4c807

Please sign in to comment.