Fix preventing local proxy usage for remote instances

This commit is contained in:
2025-10-19 18:55:56 +02:00
parent 82f4f7beed
commit 51a7ac590e

View File

@@ -62,7 +62,7 @@ func (p *proxy) build() (*httputil.ReverseProxy, error) {
}
// Remote instances should not use local proxy - they are handled by RemoteInstanceProxy
if len(options.Nodes) > 0 {
if _, isLocal := options.Nodes[p.instance.localNodeName]; !isLocal {
return nil, fmt.Errorf("instance %s is a remote instance and should not use local proxy", p.instance.Name)
}