aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-06-03 08:01:49 +0200
committerLoïc Hoguin <[email protected]>2018-06-03 08:01:49 +0200
commit2e68b70cb721d85ea71761cf62dc47d627844226 (patch)
tree6ead2b950ba02c6f8c34cf6294b165bc03e37cc0 /src/gun.erl
parent9de9a41739c379de036873d2a5c777a93b8741bc (diff)
downloadgun-2e68b70cb721d85ea71761cf62dc47d627844226.tar.gz
gun-2e68b70cb721d85ea71761cf62dc47d627844226.tar.bz2
gun-2e68b70cb721d85ea71761cf62dc47d627844226.zip
Fix the inet:ip_address() type
Diffstat (limited to 'src/gun.erl')
-rw-r--r--src/gun.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gun.erl b/src/gun.erl
index a4ef417..bad1418 100644
--- a/src/gun.erl
+++ b/src/gun.erl
@@ -125,12 +125,12 @@
%% Connection.
--spec open(inet:hostname() | inet:ipaddress(), inet:port_number())
+-spec open(inet:hostname() | inet:ip_address(), inet:port_number())
-> {ok, pid()} | {error, any()}.
open(Host, Port) ->
open(Host, Port, #{}).
--spec open(inet:hostname() | inet:ipaddress(), inet:port_number(), opts())
+-spec open(inet:hostname() | inet:ip_address(), inet:port_number(), opts())
-> {ok, pid()} | {error, any()}.
open(Host, Port, Opts) when is_list(Host); is_atom(Host); is_tuple(Host) ->
do_open(Host, Port, Opts).