mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 15:31:42 +00:00
fix
This commit is contained in:
parent
d9dbdd8d74
commit
55b88bf212
|
@ -11,7 +11,7 @@ var LDPlayer = require("lib/ldplayer");
|
||||||
var NoxPlayer = require("lib/noxplayer");
|
var NoxPlayer = require("lib/noxplayer");
|
||||||
|
|
||||||
var token, userId;
|
var token, userId;
|
||||||
var apiUrl = CONFIG.readConfig("/ApiUrl").first().getText();
|
var apiUrl = CONFIG.getValue("ApiUrl");
|
||||||
|
|
||||||
var servers = [];
|
var servers = [];
|
||||||
var applications = [];
|
var applications = [];
|
||||||
|
@ -293,7 +293,9 @@ if (typeof(token) !== "undefined") {
|
||||||
document.getElementById("btn_close").onclick = function() {
|
document.getElementById("btn_close").onclick = function() {
|
||||||
OldBrowser.close();
|
OldBrowser.close();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
document.getElementById("version").innerHTML = "현재 버전: " + CONFIG.getValue("Version");
|
||||||
|
|
||||||
assign();
|
assign();
|
||||||
} else {
|
} else {
|
||||||
OldBrowser.setContent(FILE.readFile("app\\login.html", "utf-8"));
|
OldBrowser.setContent(FILE.readFile("app\\login.html", "utf-8"));
|
||||||
|
|
|
@ -89,3 +89,11 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="cell">
|
||||||
|
<div class="col">
|
||||||
|
<div class="float-right">
|
||||||
|
<span id="version">버전 정보를 확인하고 있습니다.</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////
|
||||||
var XML = require("lib/xml");
|
var XML = require("lib/xml");
|
||||||
|
|
||||||
var readConfig = function(path) {
|
exports.getValue = function(key) {
|
||||||
return XML.load("config.xml").select("/Config" + path);
|
return XML.load("config.xml").select("/Config/" + key).first().getText();
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.readConfig = readConfig;
|
|
||||||
|
|
|
@ -25,13 +25,13 @@ var ShadowsocksObject = function() {
|
||||||
"-s",
|
"-s",
|
||||||
host,
|
host,
|
||||||
"-p",
|
"-p",
|
||||||
CONFIG.readConfig("/SSPort").first().getText(),
|
CONFIG.getValue("SSPort"),
|
||||||
"-l",
|
"-l",
|
||||||
this.listenPort,
|
this.listenPort,
|
||||||
"-k",
|
"-k",
|
||||||
CONFIG.readConfig("/SSPassword").first().getText(),
|
CONFIG.getValue("SSPassword"),
|
||||||
"-m",
|
"-m",
|
||||||
CONFIG.readConfig("/SSCipher").first().getText()
|
CONFIG.getValue("SSCipher")
|
||||||
]);
|
]);
|
||||||
|
|
||||||
sleep(1000);
|
sleep(1000);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user