fix bug
This commit is contained in:
parent
236e781d22
commit
be8a8fc2b5
6
index.ts
6
index.ts
@ -13,8 +13,8 @@ let api = new RouterOSAPI({
|
|||||||
password: cfg.password,
|
password: cfg.password,
|
||||||
});
|
});
|
||||||
|
|
||||||
const maincidr = cfg.maincidr;
|
let maincidr = cfg.maincidr;
|
||||||
const proxycidr = cfg.proxycidr;
|
let proxycidr = cfg.proxycidr;
|
||||||
|
|
||||||
let haslogin = cfg.login;
|
let haslogin = cfg.login;
|
||||||
type Device = {
|
type Device = {
|
||||||
@ -62,6 +62,8 @@ const server = serve({
|
|||||||
data.main,
|
data.main,
|
||||||
data.proxy
|
data.proxy
|
||||||
);
|
);
|
||||||
|
maincidr = data.main;
|
||||||
|
proxycidr = data.proxy;
|
||||||
console.log('配置文件已更新');
|
console.log('配置文件已更新');
|
||||||
return new Response('登入成功');
|
return new Response('登入成功');
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user