Fix tailscale error

This commit is contained in:
世界 2026-04-11 11:48:44 +08:00
parent b09d079cd9
commit 1735022e91
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -769,7 +769,7 @@ func (c *CommandClient) SubscribeTailscaleStatus(handler TailscaleStatusHandler)
for {
event, recvErr := stream.Recv()
if recvErr != nil {
if status.Code(recvErr) == codes.NotFound {
if status.Code(recvErr) == codes.NotFound || status.Code(recvErr) == codes.Unavailable {
return nil
}
recvErr = E.Cause(recvErr, "tailscale status recv")