Skip to content

Commit

Permalink
revert mistaken _sockname compat change from #213
Browse files Browse the repository at this point in the history
  • Loading branch information
samoconnor committed Mar 28, 2018
1 parent d1724d6 commit 7f8e4ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IOExtras.jl
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ tcpsocket(io::TCPSocket)::TCPSocket = io
localport(io) = try !isopen(tcpsocket(io)) ? 0 :
VERSION > v"0.7.0-DEV" ?
Sockets.getsockname(tcpsocket(io))[2] :
Sockets._sockname(tcpsocket(io), true)[2]
Base._sockname(tcpsocket(io), true)[2]
catch
0
end
Expand Down

0 comments on commit 7f8e4ba

Please sign in to comment.