This commit is contained in:
Namhyeon Go 2020-08-09 18:47:04 +09:00
parent 109df0424b
commit dceb18c84a
3 changed files with 11 additions and 4 deletions

View File

@ -113,6 +113,9 @@ $(document).ready(function() {
if(isTokenExists) { if(isTokenExists) {
SSLoader.main(); SSLoader.main();
$("#textbox_status").text("연결 중..."); $("#textbox_status").text("연결 중...");
setTimeout(function() {
$("#textbox_status").text("연결 됨");
}, 10000);
} else { } else {
console.info("로그인을 먼저 진행하여 주세요."); console.info("로그인을 먼저 진행하여 주세요.");
} }
@ -120,6 +123,7 @@ $(document).ready(function() {
// 종료 // 종료
$("#btn_disconnect").click(function() { $("#btn_disconnect").click(function() {
console.info("연결을 종료합니다.");
// todo // todo
}); });
}); });

View File

@ -57,8 +57,8 @@ exports.run = function(cmd, fork) {
WSH.Run(c, 0, !fork); WSH.Run(c, 0, !fork);
}; };
exports.elevatedRun = function(cmd, fork) { exports.elevatedRun = function(FN, args) {
var oShell = CreateObject("Shell.Application"); var oShell = CreateObject("Shell.Application");
var c = exports.makeCmdLine(cmd); oShell.shellExecute(FN, args, null, "runas", 0);
oShell.shellExecute(c, null, null, "runas", 1); return oShell;
}; };

View File

@ -51,7 +51,10 @@ exports.main = function() {
// 앱 프록시 실행 // 앱 프록시 실행
console.info("앱 프록시는 관리자 권한을 필요로 합니다. 권한 요청 시 확인을 눌러주세요."); console.info("앱 프록시는 관리자 권한을 필요로 합니다. 권한 요청 시 확인을 눌러주세요.");
SHELL.elevatedRun("assignProxy.bat"); SHELL.elevatedRun(SYS.getCurrentScriptDirectory() + "/bin/shadow.exe", [
"-c",
SYS.getCurrentScriptDirectory() + "/config.json"
]);
}; };
exports.ssConfig = ssConfig; exports.ssConfig = ssConfig;