aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gun_tcp.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gun_tcp.erl b/src/gun_tcp.erl
index 16d9e15..ffca8df 100644
--- a/src/gun_tcp.erl
+++ b/src/gun_tcp.erl
@@ -91,6 +91,7 @@ try_connect([], _, _, _, _, Error) ->
Error.
maybe_exit({error, einval}) -> exit(badarg);
+maybe_exit({error, eaddrnotavail}) -> exit(badarg);
maybe_exit(Error) -> Error.
-spec send(inet:socket(), iodata()) -> ok | {error, atom()}.