Files
flvx/plans/003-forward-edit-bind-ip-preserve.md
sagitchu 1450b25475 fix: preserve bind IP when editing forward without explicit inIp change
- Add replaceForwardPortsPreservingInIP to maintain existing InIP values
- Track inIpTouched state in frontend to distinguish user changes
- Only send inIp in update request when user explicitly changed it
- Add unit tests for forward port replacement with preserved InIP
2026-03-03 20:22:58 +08:00

760 B

003 Forward Edit Bind IP Preserve

Checklist

  • Confirm forward edit flow and identify why untouched listen IP gets overwritten.
  • Update frontend forward edit submit logic to only send inIp when user explicitly changes listen IP.
  • On tunnel switch in edit form, reset listen IP to default unless user reselects.
  • Update backend forward update logic to preserve existing forward_port.in_ip when request omits inIp and tunnel is unchanged.
  • Keep backend behavior explicit: if inIp is sent (including empty), apply requested value; if tunnel changed with no inIp, use default bind.
  • Add regression tests for preserved bind-IP reconstruction helper behavior.
  • Run focused frontend/backend checks for touched files.