Skip to content

Commit

Permalink
addressing intrange nit
Browse files Browse the repository at this point in the history
  • Loading branch information
jagaimoworks committed Nov 29, 2024
1 parent 52522df commit a1e7f12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/portforward/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (s *Service) SetPortsForwarded(ctx context.Context, ports []uint16) (err er
for i, port := range s.ports {
err := s.portAllower.RemoveAllowedPort(ctx, port)
if err != nil {
for j := 0; j < i; j++ {
for j := range i {
_ = s.portAllower.SetAllowedPort(ctx, s.ports[j], s.settings.Interface)
}
s.logger.Error(err.Error())
Expand Down

0 comments on commit a1e7f12

Please sign in to comment.