Skip to content

Commit 7fc8f42

Browse files
committed
don't debug in production
1 parent 79d626f commit 7fc8f42

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ui/src/components/Services.vue

+7-2
Original file line numberDiff line numberDiff line change
@@ -721,9 +721,14 @@ export default {
721721
console.log("net: ", n);
722722
this.service.net = n;
723723
724-
vpn.current.allowedIPs = n.allowedIPs;
724+
vpn.current.allowedIPs = n.default.allowedIPs;
725725
if (this.svcList.selected.value == "Tunnel") {
726-
vpn.current.allowedIPs.push("0.0.0.0/0")
726+
console.log("allowedIPs: ", vpn.current.allowedIPs)
727+
if (vpn.current.allowedIPs) {
728+
vpn.current.allowedIPs.push("0.0.0.0/0")
729+
} else {
730+
vpn.current.allowedIPs = ["0.0.0.0/0"]
731+
}
727732
}
728733
729734
ApiService.post("/device", device)

0 commit comments

Comments
 (0)