@@ -67,12 +67,12 @@ maybe_use_legacy_tls(Spec) ->
67
67
% % @doc Picks a random server based on the config var `xmpp_servers'.
68
68
% % This function expects a list of proplists defining the endpoint
69
69
% % to which an XMPP client can connect, for instance:
70
- % % [[{host, "127.0.0.1"}, {port, 5222}], [{host, "127.0.0.1"}, {port, 5223}]]
70
+ % % [[{host, << "127.0.0.1">> }, {port, 5222}], [{host, << "127.0.0.1">> }, {port, 5223}]]
71
71
% % One of the above proplists is picked and can be added to user's spec.
72
72
% % It's required that the proplists contains at least the `host' property.
73
73
% % Since the `xmpp_servers' config option is read via `amoc_config' API,
74
74
% % it's possible to pass it as an ENV var when starting amoc:
75
- % % ```> AMOC_xmpp_servers ="[[{host,\"127.0.0.2\"}, {port, 5222}],[{host, \"127.0.0.1\"}, {port, 5223}]]" make console '''
75
+ % % ```> AMOC_XMPP_SERVERS ="[[{host,<< \"127.0.0.2\">> }, {port, 5222}],[{host, << \"127.0.0.1\">> }, {port, 5223}]]" rebar3 shell '''
76
76
-spec pick_server ([[proplists :property ()]]) -> [proplists :property ()].
77
77
pick_server (DefaultServers ) ->
78
78
Servers = amoc_config :get (xmpp_servers , DefaultServers ),
0 commit comments