]> granicus.if.org Git - ejabberd/commitdiff
Use "localhost" as a default host
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Fri, 17 Aug 2018 15:42:09 +0000 (18:42 +0300)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Fri, 17 Aug 2018 15:42:09 +0000 (18:42 +0300)
src/ejabberd_config.erl

index d47dc2892a259f0b55ded42a44fce9ddb35a5717..f34c876eb5ab57c629f8e702cba6bdf2b34bcb54 100644 (file)
@@ -1130,7 +1130,7 @@ get_version() ->
 -spec get_myhosts() -> [binary()].
 
 get_myhosts() ->
-    get_option(hosts).
+    get_option(hosts, [<<"localhost">>]).
 
 -spec get_myname() -> binary().