mirror of https://github.com/tp4a/teleport
修正助手配合HTTPS无法启动监听的问题,重新颁发了助手使用的127.0.0.1 IP证书,修正助手安装包打包脚本的编码。
parent
1305c11ccc
commit
1ec165f0a2
|
@ -155,6 +155,7 @@ def do_opt(opt):
|
|||
|
||||
# cmd = '"%s" -B "%s" %s' % (utils.cfg.py_exec, os.path.join(BUILDER_PATH, script), arg)
|
||||
cmd = '%s -B %s %s' % (env.py_exec, os.path.join(env.builder_path, script), arg)
|
||||
print(cmd)
|
||||
os.system(cmd)
|
||||
|
||||
|
||||
|
|
|
@ -96,7 +96,7 @@ INT_PTR CALLBACK eomDlgMainProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARA
|
|||
|
||||
case IDM_OPEN_CONFIG:
|
||||
{
|
||||
ShellExecute(nullptr, _T("open"), _T("http://localhost:50022/config"), nullptr, nullptr, SW_SHOW);
|
||||
ShellExecute(nullptr, _T("open"), _T("http://127.0.0.1:50022/config"), nullptr, nullptr, SW_SHOW);
|
||||
return TRUE;
|
||||
}break;
|
||||
|
||||
|
|
|
@ -129,7 +129,7 @@ void http_rpc_main_loop(bool is_https) {
|
|||
}
|
||||
|
||||
EXLOGW("======================================================\n");
|
||||
EXLOGW("[rpc] TeleportAssist-HTTPS-RPC ready on localhost:%d\n", TS_HTTPS_RPC_PORT);
|
||||
EXLOGW("[rpc] TeleportAssist-HTTPS-RPC ready on 127.0.0.1:%d\n", TS_HTTPS_RPC_PORT);
|
||||
|
||||
g_https_interface.run();
|
||||
|
||||
|
@ -141,7 +141,7 @@ void http_rpc_main_loop(bool is_https) {
|
|||
}
|
||||
|
||||
EXLOGW("======================================================\n");
|
||||
EXLOGW("[rpc] TeleportAssist-HTTP-RPC ready on localhost:%d\n", TS_HTTP_RPC_PORT);
|
||||
EXLOGW("[rpc] TeleportAssist-HTTP-RPC ready on 127.0.0.1:%d\n", TS_HTTP_RPC_PORT);
|
||||
|
||||
g_http_interface.run();
|
||||
|
||||
|
|
|
@ -17,14 +17,14 @@
|
|||
//=================================================================
|
||||
接口使用说明:
|
||||
|
||||
本程序启动后,监听 localhost:50022,接收http请求,请求格式要求如下:
|
||||
本程序启动后,监听 127.0.0.1:50022,接收http请求,请求格式要求如下:
|
||||
|
||||
GET 方式
|
||||
http://localhost:50022/method/json_param
|
||||
http://127.0.0.1:50022/method/json_param
|
||||
其中json_param是使用url_encode进行编码后的json格式字符串
|
||||
|
||||
POST 方式
|
||||
http://localhost:50022/method
|
||||
http://127.0.0.1:50022/method
|
||||
post的数据区域是json_param
|
||||
|
||||
其中,URI分为三个部分:
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue