Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Fix network settings save
  • Loading branch information
jorikfon committed Nov 5, 2024
1 parent 1d13e7c commit 39e919f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AdminCabinet/Controllers/NetworkController.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ private function fillEthStructure(LanInterfaces $eth, array $data): void
{
$isDocker = Util::isDocker();
foreach ($eth as $name => $value) {
$itIsInternetInterfce = $eth->id === $data['internet_interface'];
$itIsInternetInterfce = intval($eth->id) === intval($data['internet_interface']);
switch ($name) {
case 'topology':
if ($itIsInternetInterfce) {
Expand Down

0 comments on commit 39e919f

Please sign in to comment.