Files
hermes-agent/hermes_platform
BearHuddleston 96257ebfc5 fix(gateway): refuse a specific webapp.host no interface holds before binding
Linux lets a TCP socket bind a directed subnet broadcast (the .255 of a local /24), so a bind
succeeding did not prove the address was this machine's: `webapp-status` reported such a Webapp as
serving. A specific-address bind now checks the machine's interface addresses (psutil) once before
it binds, and refuses with EADDRNOTAVAIL, which the runtime reports as "the address is not assigned
to any network interface on this machine"; native clients keep the private listener. Loopback,
wildcard and name binds skip the check, as before.

Test: test_an_interface_broadcast_is_not_served_as_a_machine_address (Linux).

Reported in review of #157376.
2026-11-20 11:19:26 -05:00
..
…