Skip to content

Commit bdc1640

Browse files
committed
*: fix test
Signed-off-by: xhe <xw897002528@gmail.com>
1 parent a39af8d commit bdc1640

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

conf/weirproxy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ security:
4444
# that said, it is both a client and a server object
4545
client: # server object
4646
# proxy SQL or internal HTTP port will all use this
47+
skip-ca: true
4748
auto-certs: true
4849
advance:
4950
# ignore-wrong-namespace: true

pkg/manager/config/manager.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ func (srv *ConfigManager) Init(ctx context.Context, addrs []string, cfg config.A
8383
}
8484

8585
var err error
86-
// local connection, let us skip ca check
87-
scfg.SkipCA = true
8886
etcdConfig.TLS, err = security.BuildClientTLSConfig(logger, scfg, "frontend")
8987
if err != nil {
9088
return errors.Wrapf(err, "create etcd config center error")

0 commit comments

Comments
 (0)