Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/socket/address.cr b/src/socket/address.cr
- index 5b1fc76..b7f7d42 100644
- --- a/src/socket/address.cr
- +++ b/src/socket/address.cr
- @@ -107,8 +107,8 @@ class Socket
- def address
- @address ||= begin
- case family
- - when Family::INET6 then address(@addr6)
- - when Family::INET then address(@addr4)
- + when Family::INET6 then address(@addr6.not_nil!)
- + when Family::INET then address(@addr4.not_nil!)
- else raise "unsupported IP address family: #{family}"
- end
- end
- @@ -132,10 +132,6 @@ class Socket
- end
- end
- - private def address(addr) : Nil
- - # shouldn't happen
- - end
- -
- def ==(other : IPAddress)
- family == other.family &&
- port == other.port &&
- --
- 2.1.4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement