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:
parent
dceab3689d
commit
52221127cc
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user