Skip to content

Commit 1320143

Browse files
committed
RFC: Use AclName for consistency
1 parent c3463df commit 1320143

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

proxy/template.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,9 @@ func FormatServiceForTemplates(sr *Service) {
385385
}
386386

387387
if sd.SrcPort > 0 {
388-
sr.ServiceDest[i].SrcPortAclName = fmt.Sprintf(" srcPort_%s%d_%d", sr.ServiceName, sd.SrcPort, sd.Index)
388+
sr.ServiceDest[i].SrcPortAclName = fmt.Sprintf(" srcPort_%s%d_%d", sr.AclName, sd.SrcPort, sd.Index)
389389
sr.ServiceDest[i].SrcPortAcl = fmt.Sprintf("\n acl srcPort_%s%d_%d dst_port %d",
390-
sr.ServiceName, sd.SrcPort, sd.Index, sd.SrcPort)
390+
sr.AclName, sd.SrcPort, sd.Index, sd.SrcPort)
391391
}
392392
}
393393
}

0 commit comments

Comments
 (0)