Skip to content

Commit

Permalink
Correctly get http port for current Riak KV and TS
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis B. Hartwell committed Dec 19, 2016
1 parent 0cb05b1 commit b9672bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/re_node.erl
Original file line number Diff line number Diff line change
Expand Up @@ -480,10 +480,10 @@ config(Node) ->
http_listener(Node) ->
NodeStr = atom_to_list(Node),
[_,Addr] = string:tokens(NodeStr, "@"),
case command(Node, application, get_env, [riak_api, http]) of
case command(Node, riak_api_web, get_listeners, []) of
{error, Reason} ->
{error, Reason};
{ok,[{_,Port}]} ->
[{http,{_,Port}}|_] ->
list_to_binary(Addr ++ ":" ++ integer_to_list(Port))
end.

Expand Down

0 comments on commit b9672bf

Please sign in to comment.