diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cowboy_http_req.erl | 2 | ||||
-rw-r--r-- | src/cowboy_ssl_transport.erl | 2 | ||||
-rw-r--r-- | src/cowboy_tcp_transport.erl | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/cowboy_http_req.erl b/src/cowboy_http_req.erl index 2f52eeb..ba37fba 100644 --- a/src/cowboy_http_req.erl +++ b/src/cowboy_http_req.erl @@ -48,7 +48,7 @@ version(Req) -> {Req#http_req.version, Req}. -spec peer(Req::#http_req{}) - -> {{Address::ip_address(), Port::port_number()}, Req::#http_req{}}. + -> {{Address::inet:ip_address(), Port::port_number()}, Req::#http_req{}}. peer(Req=#http_req{socket=Socket, transport=Transport, peer=undefined}) -> {ok, Peer} = Transport:peername(Socket), {Peer, Req#http_req{peer=Peer}}; diff --git a/src/cowboy_ssl_transport.erl b/src/cowboy_ssl_transport.erl index 1122bfb..f72d1b1 100644 --- a/src/cowboy_ssl_transport.erl +++ b/src/cowboy_ssl_transport.erl @@ -69,7 +69,7 @@ controlling_process(Socket, Pid) -> ssl:controlling_process(Socket, Pid). -spec peername(Socket::sslsocket()) - -> {ok, {Address::ip_address(), Port::port_number()}} | {error, posix()}. + -> {ok, {Address::inet:ip_address(), Port::port_number()}} | {error, posix()}. peername(Socket) -> ssl:peername(Socket). diff --git a/src/cowboy_tcp_transport.erl b/src/cowboy_tcp_transport.erl index 5049b84..8bcd062 100644 --- a/src/cowboy_tcp_transport.erl +++ b/src/cowboy_tcp_transport.erl @@ -59,7 +59,7 @@ controlling_process(Socket, Pid) -> gen_tcp:controlling_process(Socket, Pid). -spec peername(Socket::socket()) - -> {ok, {Address::ip_address(), Port::port_number()}} | {error, posix()}. + -> {ok, {Address::inet:ip_address(), Port::port_number()}} | {error, posix()}. peername(Socket) -> inet:peername(Socket). |