Skip to content
This repository was archived by the owner on Nov 21, 2019. It is now read-only.

Commit 6c4b6a5

Browse files
author
icymind
committed
minor fix
1 parent 17c07c8 commit 6c4b6a5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/renderer/lib/vrouter.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -359,10 +359,10 @@ class VRouter extends Openwrt {
359359
}
360360
static async toggleRouting (action = false, type = 'off') {
361361
logger.info('action', type)
362-
const config = await VRouter.getLatestCfg().cfg
363-
const ip = config.openwrt.ip
364-
const hostonlyif = await VBox.getAssignedHostonlyInf(config.virtualbox.vmName)
365-
const hostonlyInfIP = config.virtualbox.hostonlyInfIP
362+
const {cfg} = await VRouter.getLatestCfg()
363+
const ip = cfg.openwrt.ip
364+
const hostonlyif = await VBox.getAssignedHostonlyInf(cfg.virtualbox.vmName)
365+
const hostonlyInfIP = cfg.virtualbox.hostonlyInfIP
366366
let isVRouterOn = true
367367
if (action) {
368368
isVRouterOn = type === 'off'

0 commit comments

Comments
 (0)