aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjuhlig <[email protected]>2019-05-20 13:27:37 +0200
committerLoïc Hoguin <[email protected]>2019-05-22 13:34:49 +0200
commit95b53ec7247ad68ed4cb2425b396377312ea3dee (patch)
treef9484487af03b4f66db3975da02ac391219371d1 /src
parent0902d969562505ed80ad9b1e855d6fb442060a69 (diff)
downloadranch-95b53ec7247ad68ed4cb2425b396377312ea3dee.tar.gz
ranch-95b53ec7247ad68ed4cb2425b396377312ea3dee.tar.bz2
ranch-95b53ec7247ad68ed4cb2425b396377312ea3dee.zip
Add inet:local_address() to ranch_tcp ip option
Diffstat (limited to 'src')
-rw-r--r--src/ranch_tcp.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ranch_tcp.erl b/src/ranch_tcp.erl
index a134844..764c4b8 100644
--- a/src/ranch_tcp.erl
+++ b/src/ranch_tcp.erl
@@ -50,7 +50,7 @@
| {high_watermark, non_neg_integer()}
| inet
| inet6
- | {ip, inet:ip_address()}
+ | {ip, inet:ip_address() | inet:local_address()}
| {ipv6_v6only, boolean()}
| {keepalive, boolean()}
| {linger, {boolean(), non_neg_integer()}}