Skip to content

Commit

Permalink
Merge pull request #5411 from oliver-sanders/macos-dns-fix-2
Browse files Browse the repository at this point in the history
portability: permit arpa address
  • Loading branch information
wxtim authored Jul 4, 2024
2 parents e65e8ed + 35c1ce0 commit 1af3999
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 1af3999

Please sign in to comment.