🚑 Fix proxy type issue.

This commit is contained in:
刘嘉伟 committed 2026-03-31 14:35:42 +08:00
1 parent e37661c6e9
commit 1bdd35a234
1 file changed
+2
+2
View File
@@ -170,6 +170,8 @@ func (fs *Service) genProxyCfgs(serverId *string) ([]v1.ProxyConfigurer, error)
if proxyMap.ProxyType == "http" || proxyMap.ProxyType == "https" { if proxyMap.ProxyType == "http" || proxyMap.ProxyType == "https" {
delete(proxyData, "remotePort") delete(proxyData, "remotePort")
} }
proxyData["type"] = proxyMap.ProxyType
delete(proxyData, "proxyType")
proxyData["name"] = proxyMap.Name + "-" + proxyMap.Id proxyData["name"] = proxyMap.Name + "-" + proxyMap.Id
// Remove empty plugin map so frp doesn't try to parse a typeless plugin // Remove empty plugin map so frp doesn't try to parse a typeless plugin