Skip to content

Commit

Permalink
fix: correct bypass in example config
Browse files Browse the repository at this point in the history
go-playground/validator@94a637a;

Add example config to test as well.

Signed-off-by: black-desk <[email protected]>
  • Loading branch information
black-desk committed Oct 20, 2023
1 parent e14cdf5 commit 47510b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion misc/config/example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ route-table: 300
# This means any traffic send to 127.0.0.1 and ::1 will be directly send
# without influenced by the tproxy configuration.
bypass:
- 127.0.0.1/8
- 127.0.0.0/8
- ::1

tproxies:
Expand Down
1 change: 1 addition & 0 deletions pkg/cgtproxy/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ var _ = Describe("Configuration", func() {
Expect(err).To(BeNil())
})
},
ContextTableEntry("../../../misc/config/example.yaml"),
ContextTableEntry("../../../test/data/example_config.yaml"),
)

Expand Down

0 comments on commit 47510b3

Please sign in to comment.