修复DNS节点升级文件无法下载的Bug

This commit is contained in:
GoEdgeLab
2021-08-31 22:36:36 +08:00
parent aafe0c4e73
commit c3e011346f
6 changed files with 10 additions and 4 deletions

View File

@@ -15,6 +15,7 @@ import (
"github.com/TeaOSLab/EdgeCommon/pkg/rpc/pb"
"github.com/iwind/TeaGo/logs"
stringutil "github.com/iwind/TeaGo/utils/string"
"io"
"path/filepath"
)
@@ -466,7 +467,7 @@ func (this *NSNodeService) DownloadNSNodeInstallationFile(ctx context.Context, r
}
data, offset, err := file.Read(req.ChunkOffset)
if err != nil {
if err != nil && err != io.EOF {
return nil, err
}