From b965b77c1898f6d65e205f79c7c2f73a5cb807c7 Mon Sep 17 00:00:00 2001 From: LordMathis Date: Thu, 9 Oct 2025 20:24:54 +0200 Subject: [PATCH] Prevent remote instances from using local proxy in GetProxy method --- pkg/instance/instance.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/instance/instance.go b/pkg/instance/instance.go index 6d33f66..dcebef4 100644 --- a/pkg/instance/instance.go +++ b/pkg/instance/instance.go @@ -171,6 +171,11 @@ func (i *Process) GetProxy() (*httputil.ReverseProxy, error) { return nil, fmt.Errorf("instance %s has no options set", i.Name) } + // Remote instances should not use local proxy - they are handled by RemoteInstanceProxy + if len(i.options.Nodes) > 0 { + return nil, fmt.Errorf("instance %s is a remote instance and should not use local proxy", i.Name) + } + var host string var port int switch i.options.BackendType {