mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +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
|