fix(newt): missing hcStatus in hc config on reconnect #143

Closed
opened 2026-04-05 17:01:27 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @LaurenceJJones on 3/7/2026

Community Contribution License Agreement

By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.

Description

The buildTargetConfigurationForNewtClient function was not including the
hcStatus field when building health check targets for the newt/wg/connect
message. This caused custom expected response codes (e.g., 409) to revert
to the default 2xx range check after Pangolin server restart.

Added hcStatus to both the database select query and the returned health
check target object, matching the behavior in targets.ts addTargets.

fixes: https://github.com/fosrl/newt/issues/240

How to test?

Follow the steps defined in https://github.com/fosrl/newt/issues/240, after this change the expected code should function correctly.

*Originally created by @LaurenceJJones on 3/7/2026* ## Community Contribution License Agreement By creating this pull request, I grant the project maintainers an unlimited, perpetual license to use, modify, and redistribute these contributions under any terms they choose, including both the AGPLv3 and the Fossorial Commercial license terms. I represent that I have the right to grant this license for all contributed content. ## Description The buildTargetConfigurationForNewtClient function was not including the hcStatus field when building health check targets for the newt/wg/connect message. This caused custom expected response codes (e.g., 409) to revert to the default 2xx range check after Pangolin server restart. Added hcStatus to both the database select query and the returned health check target object, matching the behavior in targets.ts addTargets. fixes: https://github.com/fosrl/newt/issues/240 ## How to test? Follow the steps defined in https://github.com/fosrl/newt/issues/240, after this change the expected code should function correctly.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#143