mirror of
https://github.com/Telecominfraproject/wlan-cloud-loadsim.git
synced 2025-11-02 11:38:04 +00:00
Adding port for API.
This commit is contained in:
@@ -36,11 +36,17 @@ loginUserAndPassword() ->
|
|||||||
end.
|
end.
|
||||||
|
|
||||||
get_api_endpoint_name(Sim) ->
|
get_api_endpoint_name(Sim) ->
|
||||||
case init:get_argument(tipapi) of
|
TmpEndPoint = case init:get_argument(tipapi) of
|
||||||
{ok,[[APIEndPoint]]} ->
|
{ok,[[APIEndPoint]]} ->
|
||||||
APIEndPoint;
|
APIEndPoint;
|
||||||
_ ->
|
_ ->
|
||||||
binary_to_list(Sim#simulation.opensync_server_name)
|
binary_to_list(Sim#simulation.opensync_server_name)
|
||||||
|
end,
|
||||||
|
case init:get_argument(tipport) of
|
||||||
|
{ok,[[APIPort]]} ->
|
||||||
|
TmpEndPoint ++ ":" ++ APIPort;
|
||||||
|
_ ->
|
||||||
|
TmpEndPoint
|
||||||
end.
|
end.
|
||||||
|
|
||||||
% Options foe SSL: {cacerts, client_cacerts()}
|
% Options foe SSL: {cacerts, client_cacerts()}
|
||||||
|
|||||||
Reference in New Issue
Block a user