mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-08 05:39:49 -05:00
[PR #2616] [MERGED] fix(newt): missing hcStatus in hc config on reconnect #3061
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fosrl/pangolin/pull/2616
Author: @LaurenceJJones
Created: 3/7/2026
Status: ✅ Merged
Merged: 3/8/2026
Merged by: @oschwartz10612
Base:
dev← Head:fix/issue-240-hcStatus-missing📝 Commits (1)
be609b5Fix missing hcStatus field in health check config on reconnect📊 Changes
1 file changed (+4 additions, -2 deletions)
View changed files
📝
server/routers/newt/buildConfiguration.ts(+4 -2)📄 Description
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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.