Add conversion patch

This commit is contained in:
Gerhard Tan
2024-03-14 06:55:41 +00:00
committed by GitHub
parent 5a0d517559
commit d3062942d0
2 changed files with 16 additions and 0 deletions

View File

@ -12,6 +12,10 @@ set VERSION=%VERSION:"=%
echo [+] Downloading packages
go mod tidy || goto :error
:patch
echo [+] Patching files
for %%f in (patches\*.patch) do patch -N -r - -d %GOPATH% -p0 < %%f
:resources
echo [+] Generating resources
go generate || goto :error

12
patches/conversion.patch Normal file
View File

@ -0,0 +1,12 @@
--- pkg/mod/github.com/fatedier/frp@v0.54.0/pkg/config/legacy/conversion.go (revision 2af2cf7dbd7482906c0d78efb243a47b7670c773)
+++ patches/conversion.go (revision 9152c595708fa9b8bb61473b3aec139ebda84c10)
@@ -175,6 +175,9 @@
continue
}
if k = strings.TrimPrefix(k, "plugin_header_"); k != "" {
+ if out.Set == nil {
+ out.Set = make(map[string]string)
+ }
out.Set[k] = v
}
}