brvphoenix / luci-app-wrtbwmon

Bandwidth monitor for OpenWRT
260 stars 55 forks source link

Hostname possible? #51

Open benisai opened 2 years ago

benisai commented 2 years ago

Would it be possible to have the host name listed in the column instead of the Mac address?

jeniforxiaoyong commented 2 years ago

怎么显示hostname,即使用户文件配置了,也不显示

Lighthouseh commented 11 months ago

Could you please add the Hostname column. It can be as simple as comparing the IP/Mac against the Static leases table.

Lighthouseh commented 11 months ago

By some miracle, today the host name showed up instead of the mac address.

benisai commented 11 months ago

By some miracle, today the host name showed up instead of the mac address.

It has always shown up in the UI. It just take some time but what I'm asking is for the database to have the host name. :)

Lighthouseh commented 11 months ago

By some miracle, today the host name showed up instead of the mac address.

It has always shown up in the UI. It just take some time but what I'm asking is for the database to have the host name. :)

Ah, I realized it gets the host name from the Static leases table. But only under the condition that the client is granted an IP from DHCP. If a static IP is set on the client, it will only show the MAC And if you want the hostname database, use the "User File" tab. Format: mac,hostname per line.