mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Add Nat IP Field to Interfaces
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user