Project

General

Profile

Bug #1101

Wake-on-Lan display issue

Added by Yehuda Katz over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Web Interface
Target version:
Start date:
12/14/2010
Due date:
% Done:

100%

Estimated time:
0.10 h
Affected Version:
2.0
Affected Architecture:

Description

Even if you have renamed the LAN interface, the page still shows saved clients on interface LAN.
The fix is easy, remove this 'if'.

services_wol.php (Line 174)
echo "LAN";
else
echo $config['interfaces'][$wolent['interface']]['descr'];
?> 

Associated revisions

Revision f39b73ad (diff)
Added by Erik Fonnesbeck over 8 years ago

Fix interface names for Wake on LAN entries. Fixes #1101

History

#1 Updated by Yehuda Katz over 8 years ago

It looks like a lot of my ticket got cut off.

if ($wolent['interface'] == "lan")
echo "LAN";
else
echo $config['interfaces'][$wolent['interface']]['descr'];

It should be just
echo $config['interfaces'][$wolent['interface']]['descr'];

#2 Updated by Chris Buechler over 8 years ago

  • Target version set to 2.0

#3 Updated by Yehuda Katz over 8 years ago

Ok, it is not quite that simple.
(I would not be surprised if there was already be a function that does this.)

if ( !empty( $config['interfaces'][$wolent['interface']]['descr'] ) )
echo $config['interfaces'][$wolent['interface']]['descr'];
else
echo ucase($wolent['interface']));

#4 Updated by Erik Fonnesbeck over 8 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

#5 Updated by Chris Buechler over 8 years ago

  • Status changed from Feedback to Resolved

Also available in: Atom PDF