25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

Fix odbc_port option processing

This commit is contained in:
Evgeniy Khramtsov 2014-05-27 15:27:23 +04:00
parent dceab3689d
commit 52221127cc

View File

@ -588,7 +588,7 @@ db_opts(Host) ->
[odbc, Server]; [odbc, Server];
_ -> _ ->
Port = ejabberd_config:get_option( Port = ejabberd_config:get_option(
{port, Host}, {odbc_port, Host},
fun(P) when is_integer(P), P > 0, P < 65536 -> P end, fun(P) when is_integer(P), P > 0, P < 65536 -> P end,
case Type of case Type of
mysql -> ?MYSQL_PORT; mysql -> ?MYSQL_PORT;