fix bug in net create
This commit is contained in:
parent
0c7b0309c7
commit
1e4413b9b1
@ -63,7 +63,7 @@ router.post("/:netid/create", async (req, res) => {
|
||||
return;
|
||||
}
|
||||
// setup action
|
||||
const nc = db.getUser(req.cookies.username).network[params.type];
|
||||
const nc = db.getUser(req.cookies.username).templates.network[params.type];
|
||||
let action = {};
|
||||
if (params.type === "lxc") {
|
||||
action[`net${params.netid}`] = `name=${params.name},bridge=${nc.bridge},ip=${nc.ip},ip6=${nc.ip6},tag=${nc.vlan},type=${nc.type},rate=${params.rate}`;
|
||||
|
Loading…
Reference in New Issue
Block a user