Fix NAT mode command
This commit is contained in:
		@@ -22,7 +22,7 @@ pub fn hook_content() -> anyhow::Result<String> {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    Ok(format!(
 | 
					    Ok(format!(
 | 
				
			||||||
        "#!/bin/bash\n\
 | 
					        "#!/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(),
 | 
					        exe.to_string_lossy(),
 | 
				
			||||||
        AppConfig::get().storage
 | 
					        AppConfig::get().storage
 | 
				
			||||||
    ))
 | 
					    ))
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,7 @@
 | 
				
			|||||||
 | 
					import { Alert } from "@mui/material";
 | 
				
			||||||
import React, { PropsWithChildren } from "react";
 | 
					import React, { PropsWithChildren } from "react";
 | 
				
			||||||
import { AsyncWidget } from "../AsyncWidget";
 | 
					 | 
				
			||||||
import { NetworkHookStatus, ServerApi } from "../../api/ServerApi";
 | 
					import { NetworkHookStatus, ServerApi } from "../../api/ServerApi";
 | 
				
			||||||
import { Alert, Typography } from "@mui/material";
 | 
					import { AsyncWidget } from "../AsyncWidget";
 | 
				
			||||||
import { CopyToClipboard } from "../CopyToClipboard";
 | 
					import { CopyToClipboard } from "../CopyToClipboard";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export function NetworkHookStatusWidget(p: {
 | 
					export function NetworkHookStatusWidget(p: {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user