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
  • Loading branch information
maleadt authored Oct 7, 2024
1 parent 87acb9e commit c7071e1
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 @@ -453,6 +453,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 c7071e1

Please sign in to comment.