mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-18 06:57:59 +01:00
8 lines
174 B
Elixir
8 lines
174 B
Elixir
defmodule PhilomenaWeb.IpProfileView do
|
|
use PhilomenaWeb, :view
|
|
|
|
@spec ipv6?(Postgrex.INET.t()) :: boolean()
|
|
def ipv6?(ip) do
|
|
tuple_size(ip.address) == 8
|
|
end
|
|
end
|