mirror of
https://github.com/koho/frpmgr.git
synced 2025-10-20 16:03:47 +08:00
Add conversion patch
This commit is contained in:
@ -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
12
patches/conversion.patch
Normal 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
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user