Skip to content

Commit

Permalink
feat: add scope name to proxy path to have unique address
Browse files Browse the repository at this point in the history
Signed-off-by: Smuu <[email protected]>
  • Loading branch information
smuu committed Dec 5, 2024
1 parent ad86999 commit f925100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/instance/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (n *network) AddHost(ctx context.Context, port int) (host string, err error
serviceName = n.instance.parentInstance.name
}

prefix := fmt.Sprintf("%s-%d", serviceName, port)
prefix := fmt.Sprintf("%s-%s-%d", n.instance.Scope, serviceName, port)
if err := n.instance.Proxy.AddHost(ctx, serviceName, prefix, port); err != nil {
return "", ErrAddingToProxy.WithParams(serviceName).Wrap(err)
}
Expand Down

0 comments on commit f925100

Please sign in to comment.