From 6c23951d74675409e5333421dfd8c41a056e2f3f Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 11 Jan 2024 19:10:04 +0100 Subject: [PATCH] Fix NAT mode command --- virtweb_backend/src/nat/nat_hook.rs | 2 +- virtweb_frontend/src/widgets/net/NetworkHookStatusWidget.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/virtweb_backend/src/nat/nat_hook.rs b/virtweb_backend/src/nat/nat_hook.rs index 78903b7..69ca50c 100644 --- a/virtweb_backend/src/nat/nat_hook.rs +++ b/virtweb_backend/src/nat/nat_hook.rs @@ -22,7 +22,7 @@ pub fn hook_content() -> anyhow::Result { Ok(format!( "#!/bin/bash\n\ - {} --storage {} --network-name \"$1\" --operation \"$2\" --sub-operation \"$3\"", + NAT_MODE=1 {} --storage {} --network-name \"$1\" --operation \"$2\" --sub-operation \"$3\"", exe.to_string_lossy(), AppConfig::get().storage )) diff --git a/virtweb_frontend/src/widgets/net/NetworkHookStatusWidget.tsx b/virtweb_frontend/src/widgets/net/NetworkHookStatusWidget.tsx index 312fdf5..191ca7d 100644 --- a/virtweb_frontend/src/widgets/net/NetworkHookStatusWidget.tsx +++ b/virtweb_frontend/src/widgets/net/NetworkHookStatusWidget.tsx @@ -1,7 +1,7 @@ +import { Alert } from "@mui/material"; import React, { PropsWithChildren } from "react"; -import { AsyncWidget } from "../AsyncWidget"; import { NetworkHookStatus, ServerApi } from "../../api/ServerApi"; -import { Alert, Typography } from "@mui/material"; +import { AsyncWidget } from "../AsyncWidget"; import { CopyToClipboard } from "../CopyToClipboard"; export function NetworkHookStatusWidget(p: {