Skip to content

Commit

Permalink
small changes (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
microup authored Aug 9, 2023
1 parent c4b5b0f commit 6a0d56c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ proxy:
countDialAttemptsToPeer: 30

rules:
cacheDurationToEvict: 1d
blacklist:
cacheDurationToEvict: 1h
remoteIp:
- 127.0.0.5
- 192.168.1.40
Expand Down
2 changes: 1 addition & 1 deletion internal/proxy/rules/blacklist.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type Blacklist struct {
RemoteIP []string `yaml:"remoteIp"`
}

// Init initializes the blacklist
// Init initializes the blacklist.
func (b *Blacklist) Init(ctx context.Context) error {
b.Cache = cache.New(time.Second, b.CacheDurationToEvict)

Expand Down

0 comments on commit 6a0d56c

Please sign in to comment.