Update 2026-06-23 10:40:10
This commit is contained in:
@@ -110,7 +110,7 @@ async function uploadViaWebDAV(config, localFilePath, remotePath) {
|
||||
password: config.password,
|
||||
authType: config.authType || 'password',
|
||||
headers: {
|
||||
'User-Agent': 'IDC-Backup-Client/1.0',
|
||||
'User-Agent': 'YunRui-Backup-Client/1.0',
|
||||
},
|
||||
});
|
||||
|
||||
@@ -262,7 +262,7 @@ async function testRemoteConnection(config) {
|
||||
console.log(`测试远端连接 [${config.protocol}]...`);
|
||||
|
||||
try {
|
||||
const testContent = `IDC Backup Connection Test - ${new Date().toISOString()}`;
|
||||
const testContent = `YunRui Backup Connection Test - ${new Date().toISOString()}`;
|
||||
const testFile = path.join(require('os').tmpdir(), `backup-test-${Date.now()}.txt`);
|
||||
fs.writeFileSync(testFile, testContent);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user