Skip to content

WoL Broadcast Address not saved — field reverts to empty after Update Host #1022

Description

@alexvaltchev

Title

The WoL Broadcast Address field does not persist; it reverts to empty (placeholder) after saving.

Platform

Website - Other Browser

Server Installation Method

Docker

Version

2.5.1 (Stable)

Troubleshooting

  • I have examined logs and tried to find the issue
  • I have reviewed opened and closed issues
  • I have tried restarting the application
  • I have checked open issues and ensured this is not a duplicate

The Problem

The "WoL Broadcast Address" field in the host editor (General tab) does not persist. I can type a value and click "Update Host" without any error (the "Host updated" toast appears), but when I reopen the host the field is empty again and only shows the greyed-out placeholder 192.168.1.255. Nothing is actually saved.

Because the value isn't stored, Wake-on-LAN falls back to the default 255.255.255.255 broadcast instead of my subnet's directed broadcast. My LAN is 192.168.0.x, so I need 192.168.0.255. As a result, WoL never reaches the target machine and fails to wake it.

Expected: the broadcast address I enter should be saved and used when sending the WoL magic packet.
Actual: the value is silently dropped on save; the field is always empty on reload.

Note on the code (for reference): the field is bound in src/ui/sidebar/HostEditorData.ts and src/ui/sidebar/HostEditorGeneralTab.tsx, and both the create and update backend routes in src/backend/database/routes/host.ts destructure and store wolBroadcastAddress. This suggests the value may be getting dropped between the form state and the request payload sent on save. src/backend/utils/wake-on-lan.ts defaults to 255.255.255.255 when the value is empty.

How to Reproduce

  1. Edit a host and open the General tab.
  2. In the "WoL Broadcast Address" field, type a value (e.g. 192.168.0.255).
  3. Click "Update Host" (a "Host updated" confirmation appears).
  4. Reopen the same host — the field is empty and shows only the placeholder 192.168.1.255. The value was not saved.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status
    Bug Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions