Skip to content

Commit

Permalink
Merge pull request #22 from jumpserver/pr@master@perf_terminal
Browse files Browse the repository at this point in the history
perf: 移除对组件名称的校验
  • Loading branch information
LeeEirc committed Jun 19, 2023
2 parents 892b653 + 394c1d5 commit bf934d8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cmd/common/jms_service.go
Expand Up @@ -43,10 +43,6 @@ func MustRegisterTerminal(conf *config.Config) (key model.AccessKey) {
bootstrapToken = conf.BootstrapToken
dstFilePath = conf.AccessKeyFilePath
)
if _, ok := model.SupportedComponent(componentName); !ok {
logger.Fatalf("组件名称错误: %s", componentName)
}

for i := 0; i < 10; i++ {
terminal, err := service.RegisterTerminalAccount(coreHost, componentName, name, bootstrapToken)
if err != nil {
Expand Down

0 comments on commit bf934d8

Please sign in to comment.