frpc: exit with code 1 if first login failed (#3740)

This commit is contained in:
fatedier
2023-11-01 17:06:55 +08:00
committed by GitHub
parent 5c4d820eb4
commit 5760c1cf92
3 changed files with 5 additions and 10 deletions

View File

@@ -83,8 +83,8 @@ func NewService(
pxyCfgs []v1.ProxyConfigurer,
visitorCfgs []v1.VisitorConfigurer,
cfgFile string,
) (svr *Service, err error) {
svr = &Service{
) *Service {
return &Service{
authSetter: auth.NewAuthSetter(cfg.Auth),
cfg: cfg,
cfgFile: cfgFile,
@@ -93,7 +93,6 @@ func NewService(
ctx: context.Background(),
exit: 0,
}
return
}
func (svr *Service) GetController() *Control {