We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c7aa9f commit 54432d8Copy full SHA for 54432d8
1 file changed
internal/core/plugin_manager/manager.go
@@ -1,6 +1,7 @@
1
package plugin_manager
2
3
import (
4
+ "errors"
5
"fmt"
6
7
lru "github.com/hashicorp/golang-lru/v2"
@@ -191,6 +192,17 @@ func (p *PluginManager) Config() *app.Config {
191
192
func (c *PluginManager) NeedRedirecting(
193
identity plugin_entities.PluginUniqueIdentifier,
194
) (bool, error) {
195
+ if identity.RemoteLike() {
196
+ _, err := c.controlPanel.GetPluginRuntime(identity)
197
+ if err != nil {
198
+ if errors.Is(err, controlpanel.ErrPluginRuntimeNotFound) {
199
+ return true, nil
200
+ }
201
+ return true, err
202
203
+ return false, nil
204
205
+
206
if c.config.Platform == app.PLATFORM_SERVERLESS {
207
// under serverless mode, it's no need to do redirecting
208
return false, nil
0 commit comments