Commits

Marek Majkowski  committed 04a8b77

port number in parameters is a list not an integer

  • Participants
  • Parent commits cb2b9fa
  • Branches bug22541

Comments (0)

Files changed (1)

File src/bql_client.erl

   Password = list_to_binary(bql_utils:argument_or_default(password, "guest")),
   VHost = list_to_binary(bql_utils:argument_or_default(vhost, "/")),
   Host = bql_utils:argument_or_default(host, "localhost"),
-  Port = bql_utils:argument_or_default(port, ?PROTOCOL_PORT),
+  Port = list_to_integer(bql_utils:argument_or_default(port, integer_to_list(?PROTOCOL_PORT))),
   connect(Host, Port, Username, Password, VHost).
 
 %% Creates a connection to the Rabbit server that can subsequently be used