mirror of
https://github.com/lordmathis/llamactl.git
synced 2025-11-06 00:54:23 +00:00
Fix preventing local proxy usage for remote instances
This commit is contained in:
@@ -62,7 +62,7 @@ func (p *proxy) build() (*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(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)
|
return nil, fmt.Errorf("instance %s is a remote instance and should not use local proxy", p.instance.Name)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user