Add Nat IP Field to Interfaces

This commit is contained in:
johnnyq
2025-02-13 16:34:27 -05:00
parent 2e9e49a203
commit 5ed5473b36
5 changed files with 9 additions and 0 deletions

View File

@@ -736,6 +736,7 @@ if (isset($_POST['add_asset_interface'])) {
interface_type = '$type',
interface_mac = '$mac',
interface_ip = '$ip',
interface_nat_ip = '$nat_ip',
interface_ipv6 = '$ipv6',
interface_notes = '$notes',
interface_network_id = $network,
@@ -848,6 +849,7 @@ if (isset($_POST['edit_asset_interface'])) {
interface_type = '$type',
interface_mac = '$mac',
interface_ip = '$ip',
interface_nat_ip = '$nat_ip',
interface_ipv6 = '$ipv6',
interface_notes = '$notes',
interface_network_id = $network

View File

@@ -10,6 +10,7 @@ $ip = sanitizeInput($_POST['ip']);
if ($_POST['dhcp'] == 1){
$ip = 'DHCP';
}
$nat_ip = sanitizeInput($_POST['nat_ip']);
$ipv6 = sanitizeInput($_POST['ipv6']);
$network = intval($_POST['network']);
$notes = sanitizeInput($_POST['notes']);