Fix get local proxy

This commit is contained in:
2025-10-16 22:11:29 +02:00
parent e97ca727d1
commit 5c9a397746

View File

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