mirror of
https://github.com/seriyps/mtproto_proxy.git
synced 2026-05-13 08:46:46 +00:00
Fix common test (webserver root dir)
This commit is contained in:
parent
8be2a3da0e
commit
8a80fd4b59
1 changed files with 2 additions and 1 deletions
|
|
@ -98,12 +98,13 @@ start_config_server(Ip, Port, Secret, DcConfig, Acc) ->
|
|||
end,
|
||||
{K, OldV}
|
||||
end || {K, V} <- Env],
|
||||
RootDir = code:lib_dir(mtproto_proxy, test),
|
||||
{ok, Pid} =
|
||||
inets:start(httpd,
|
||||
[{port, Port},
|
||||
{server_name, "mtp_config"},
|
||||
{server_root, "/tmp"},
|
||||
{document_root, code:priv_dir(mtproto_proxy)},
|
||||
{document_root, RootDir},
|
||||
|
||||
{bind_address, Ip},
|
||||
{modules, [?MODULE]},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue