mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-10-05 17:46:37 +08:00
fix(backend): correct federation port forwarding tunnel type handling (#123)
- Fix Type 1 (port forwarding) tunnels to call applyFederationRuntime Previously only Type 2 tunnels applied federation runtime, causing port forwarding tunnels to not be properly configured in federation mode - Remove incorrect UDP tunnel type override in federationTunnelCreate UDP tunnels were being incorrectly set to Type 2, which conflicted with the federation runtime logic that expects Type 1 for port forwarding These fixes ensure all tunnel types are properly handled in federation mode with correct runtime configuration applied.
This commit is contained in:
@@ -780,9 +780,6 @@ func (h *Handler) federationTunnelCreate(w http.ResponseWriter, r *http.Request)
|
||||
}
|
||||
|
||||
tunnelType := 1
|
||||
if strings.ToLower(req.Protocol) == "udp" {
|
||||
tunnelType = 2
|
||||
}
|
||||
|
||||
tx, err := h.repo.DB().Begin()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user