Skip to content

Commit

Permalink
hostuserutil: permit arpa address
Browse files Browse the repository at this point in the history
* The arpa address returned by `socket.getfqdn` on Mac OS is different
  with Python 3.9 than 3.7 (conda-forge).
  • Loading branch information
oliver-sanders committed Jun 26, 2024
1 parent d715aff commit 35c1ce0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cylc/flow/hostuserutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,11 @@ def _get_host_info(self, target=None):
target = socket.getfqdn()
if (
IS_MAC_OS
and target == (
and target in {
'1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.'
'0.0.0.0.0.0.ip6.arpa'
)
'0.0.0.0.0.0.ip6.arpa',
'1.0.0.127.in-addr.arpa'
}
):
# Python's socket bindings don't play nicely with mac os
# so by default we get the above ip6.arpa address from
Expand Down

0 comments on commit 35c1ce0

Please sign in to comment.