Skip to content

Commit

Permalink
Sockets: Warn when local network access not granted. (#56023)
Browse files Browse the repository at this point in the history
Works around #56022

(cherry picked from commit c7071e1)
  • Loading branch information
maleadt authored and KristofferC committed Oct 9, 2024
1 parent a9fd6db commit 1d08207
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stdlib/Sockets/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,8 @@ end
catch e
if isa(e, Base.IOError) && Base.uverrorname(e.code) == "EPERM"
@warn "UDP IPv4 broadcast test skipped (permission denied upon send, restrictive firewall?)"
elseif Sys.isapple() && isa(e, Base.IOError) && Base.uverrorname(e.code) == "EHOSTUNREACH"
@warn "UDP IPv4 broadcast test skipped (local network access not granded?)"
else
rethrow()
end
Expand Down

0 comments on commit 1d08207

Please sign in to comment.