mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Add ability to modify version string
This commit is contained in:
parent
1de407c420
commit
40185b6bd3
@ -1070,9 +1070,16 @@ is_file_readable(Path) ->
|
||||
end.
|
||||
|
||||
get_version() ->
|
||||
case application:get_key(ejabberd, vsn) of
|
||||
undefined -> "";
|
||||
{ok, Vsn} -> list_to_binary(Vsn)
|
||||
case application:get_env(ejabberd, custom_vsn) of
|
||||
{ok, Vsn0} when is_list(Vsn0) ->
|
||||
list_to_binary(Vsn0);
|
||||
{ok, Vsn1} when is_binary(Vsn1) ->
|
||||
Vsn1;
|
||||
_ ->
|
||||
case application:get_key(ejabberd, vsn) of
|
||||
undefined -> "";
|
||||
{ok, Vsn} -> list_to_binary(Vsn)
|
||||
end
|
||||
end.
|
||||
|
||||
-spec get_myhosts() -> [binary()].
|
||||
|
Loading…
Reference in New Issue
Block a user