Fix NAT mode command

This commit is contained in:
Pierre HUBERT 2024-01-11 19:10:04 +01:00
parent 6ea8a927a3
commit 6c23951d74
2 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ pub fn hook_content() -> anyhow::Result<String> {
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
))

View File

@ -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: {