Skip to content

Commit

Permalink
relax check
Browse files Browse the repository at this point in the history
Signed-off-by: xhe <[email protected]>
  • Loading branch information
xhebox committed Dec 1, 2023
1 parent 182ca58 commit db9962e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion conf/namespace/example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ namespace = "default"
[frontend]

[backend]
instances = [ "127.0.0.1:4000" ]
instances = [ "127.0.0.1:3306" ]
selector-type = "random"
4 changes: 2 additions & 2 deletions conf/proxy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[proxy]
# addr = "0.0.0.0:6000"
# tcp-keep-alive = true
# require-backend-tls = true
require-backend-tls = false

# possible values:
# "" => disable proxy protocol.
Expand All @@ -26,7 +26,7 @@ graceful-close-conn-timeout = 15
# possible values:
# "" => enable static routing.
# "pd-addr:pd-port" => automatically tidb discovery.
# pd-addrs = "127.0.0.1:2379"
pd-addrs = ""

# possible values:
# 0 => no limitation.
Expand Down
2 changes: 1 addition & 1 deletion pkg/proxy/backend/authenticator.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ loop:
if err != nil {
// tiproxy pp enabled, tidb pp disabled, tls disabled => invalid sequence
// tiproxy pp disabled, tidb pp enabled, tls disabled => invalid sequence
if pktIdx == 0 && auth.proxyProtocol {
if pktIdx == 0 {
return errors.Wrap(ErrBackendPPV2, err)
}
return err
Expand Down

0 comments on commit db9962e

Please sign in to comment.