Make sure we return a tuple of options here, references #25, #26

This commit is contained in:
Michael Klishin 2017-02-08 11:53:20 +03:00
parent bb5762ffac
commit 755c461ef7
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ transport_config(Options0) ->
undefined ->
Options;
IP when is_tuple(IP) ->
IP;
Options;
IP when is_list(IP) ->
{ok, ParsedIP} = inet_parse:address(IP),
[{ip, ParsedIP}|proplists:delete(ip, Options)]