Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F21907186
inet_helper.ex
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
441 B
Referenced Files
None
Subscribers
None
inet_helper.ex
View Options
# Pleroma: A lightweight social networking server
# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule
Pleroma.Helpers.InetHelper
do
def
parse_address
(
ip
)
when
is_tuple
(
ip
)
do
{
:ok
,
ip
}
end
def
parse_address
(
ip
)
when
is_binary
(
ip
)
do
ip
|>
String
.
to_charlist
()
|>
parse_address
()
end
def
parse_address
(
ip
)
do
:inet
.
parse_address
(
ip
)
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Sun, Dec 28, 1:41 AM (12 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
796467
Default Alt Text
inet_helper.ex (441 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment