From 2408f1df04ad9128ee31a013799f5790dbda5cb3 Mon Sep 17 00:00:00 2001 From: fatedier Date: Thu, 22 Apr 2021 18:33:10 +0800 Subject: [PATCH] frpc: fix that login_fail_exit invalid if `protocol=kcp` (#2363) --- cmd/frpc/sub/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/frpc/sub/root.go b/cmd/frpc/sub/root.go index 55aba849..3c2c8d9e 100644 --- a/cmd/frpc/sub/root.go +++ b/cmd/frpc/sub/root.go @@ -234,7 +234,7 @@ func startService( } err = svr.Run() - if cfg.Protocol == "kcp" { + if err == nil && cfg.Protocol == "kcp" { <-kcpDoneCh } return