handle multiple path

This commit is contained in:
pascal
2026-02-09 19:25:30 +01:00
parent 1ff75acb31
commit 9e5fa11792

View File

@@ -1956,7 +1956,11 @@ func (a *Account) InjectProxyPolicies(ctx context.Context) {
}
}
policyID := fmt.Sprintf("proxy-access-%s-%s-%s", service.ID, proxyPeer.ID, target.Path)
path := ""
if target.Path != nil {
path = *target.Path
}
policyID := fmt.Sprintf("proxy-access-%s-%s-%s", service.ID, proxyPeer.ID, path)
a.Policies = append(a.Policies, &Policy{
ID: policyID,
Name: fmt.Sprintf("Proxy Access to %s", service.Name),