[PR #3996] [MERGED] fix nil map error when using plugin headers in legacy format #4881

Closed
opened 2026-05-05 14:50:32 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fatedier/frp/pull/3996
Author: @koho
Created: 2/16/2024
Status: Merged
Merged: 2/19/2024
Merged by: @fatedier

Base: devHead: plugin-header


📝 Commits (3)

  • e00916c fix nil map error when using plugin headers in legacy format
  • 4811166 create map on demand
  • 95028e9 better initialization

📊 Changes

1 file changed (+3 additions, -0 deletions)

View changed files

📝 pkg/config/legacy/conversion.go (+3 -0)

📄 Description

WHY

Fix the error:

panic: assignment to entry in nil map

when plugin_header_ prefix is present in legacy proxy config.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fatedier/frp/pull/3996 **Author:** [@koho](https://github.com/koho) **Created:** 2/16/2024 **Status:** ✅ Merged **Merged:** 2/19/2024 **Merged by:** [@fatedier](https://github.com/fatedier) **Base:** `dev` ← **Head:** `plugin-header` --- ### 📝 Commits (3) - [`e00916c`](https://github.com/fatedier/frp/commit/e00916cb398f2604aef5f1039cbf555b3ce62951) fix nil map error when using plugin headers in legacy format - [`4811166`](https://github.com/fatedier/frp/commit/48111667822428d16e39edec9ec315e1693c0a1e) create map on demand - [`95028e9`](https://github.com/fatedier/frp/commit/95028e9c2c5ca388dd4ab183d70ce354def942bc) better initialization ### 📊 Changes **1 file changed** (+3 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `pkg/config/legacy/conversion.go` (+3 -0) </details> ### 📄 Description ### WHY Fix the error: ``` panic: assignment to entry in nil map ``` when `plugin_header_` prefix is present in legacy proxy config. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 14:50:32 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#4881
No description provided.