Skip to content

fix(dhcp): handle empty Option 12 (Host Name) without exception#1955

Open
zaggash wants to merge 1 commit into
TechnitiumSoftware:masterfrom
zaggash:fix/dhcp-empty-option12
Open

fix(dhcp): handle empty Option 12 (Host Name) without exception#1955
zaggash wants to merge 1 commit into
TechnitiumSoftware:masterfrom
zaggash:fix/dhcp-empty-option12

Conversation

@zaggash
Copy link
Copy Markdown

@zaggash zaggash commented May 28, 2026

This PR resolves exceptions on DHCP Option 12 parsing when clients (like Somfy Alarm Link) send empty hostnames.

ESP8266/ESP32 DHCP clients and some proprietary alarm links (like Somfy Home Alarm Link)
send an empty Option 12 (Host Name) during DHCP requests.
This patch catches empty Host Name options gracefully, returns string.Empty to avoid exceptions,
and exposes a null getter property so the rest of the server treats the device as having no hostname (avoiding local DNS pollution).
@zaggash
Copy link
Copy Markdown
Author

zaggash commented May 28, 2026

Fixes issue #1951

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant