mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-03-12 00:45:14 +00:00
fix
This commit is contained in:
parent
109df0424b
commit
dceb18c84a
|
@ -113,6 +113,9 @@ $(document).ready(function() {
|
|||
if(isTokenExists) {
|
||||
SSLoader.main();
|
||||
$("#textbox_status").text("연결 중...");
|
||||
setTimeout(function() {
|
||||
$("#textbox_status").text("연결 됨");
|
||||
}, 10000);
|
||||
} else {
|
||||
console.info("로그인을 먼저 진행하여 주세요.");
|
||||
}
|
||||
|
@ -120,6 +123,7 @@ $(document).ready(function() {
|
|||
|
||||
// 종료
|
||||
$("#btn_disconnect").click(function() {
|
||||
console.info("연결을 종료합니다.");
|
||||
// todo
|
||||
});
|
||||
});
|
||||
|
|
|
@ -57,8 +57,8 @@ exports.run = function(cmd, fork) {
|
|||
WSH.Run(c, 0, !fork);
|
||||
};
|
||||
|
||||
exports.elevatedRun = function(cmd, fork) {
|
||||
exports.elevatedRun = function(FN, args) {
|
||||
var oShell = CreateObject("Shell.Application");
|
||||
var c = exports.makeCmdLine(cmd);
|
||||
oShell.shellExecute(c, null, null, "runas", 1);
|
||||
oShell.shellExecute(FN, args, null, "runas", 0);
|
||||
return oShell;
|
||||
};
|
||||
|
|
|
@ -51,7 +51,10 @@ exports.main = function() {
|
|||
|
||||
// 앱 프록시 실행
|
||||
console.info("앱 프록시는 관리자 권한을 필요로 합니다. 권한 요청 시 확인을 눌러주세요.");
|
||||
SHELL.elevatedRun("assignProxy.bat");
|
||||
SHELL.elevatedRun(SYS.getCurrentScriptDirectory() + "/bin/shadow.exe", [
|
||||
"-c",
|
||||
SYS.getCurrentScriptDirectory() + "/config.json"
|
||||
]);
|
||||
};
|
||||
|
||||
exports.ssConfig = ssConfig;
|
||||
|
|
Loading…
Reference in New Issue
Block a user