Skip to content

Commit 1af3999

Browse files
authored
Merge pull request #5411 from oliver-sanders/macos-dns-fix-2
portability: permit arpa address
2 parents e65e8ed + 35c1ce0 commit 1af3999

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cylc/flow/hostuserutil.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,11 @@ def _get_host_info(self, target=None):
120120
target = socket.getfqdn()
121121
if (
122122
IS_MAC_OS
123-
and target == (
123+
and target in {
124124
'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.'
125-
'0.0.0.0.0.0.ip6.arpa'
126-
)
125+
'0.0.0.0.0.0.ip6.arpa',
126+
'1.0.0.127.in-addr.arpa'
127+
}
127128
):
128129
# Python's socket bindings don't play nicely with mac os
129130
# so by default we get the above ip6.arpa address from

0 commit comments

Comments
 (0)