Browse Source

Bug fix

pull/5829/head
2dust 2 months ago
parent
commit
53a2fbd0ff
  1. 9
      v2rayN/ServiceLib/Handler/WebDavHandler.cs

9
v2rayN/ServiceLib/Handler/WebDavHandler.cs

@ -98,6 +98,8 @@ namespace ServiceLib.Handler
} }
await TryCreateDir(); await TryCreateDir();
try
{
var testName = "readme_test"; var testName = "readme_test";
var myContent = new StringContent(testName); var myContent = new StringContent(testName);
var result = await _client.PutFile($"{_webDir}/{testName}", myContent); var result = await _client.PutFile($"{_webDir}/{testName}", myContent);
@ -109,9 +111,14 @@ namespace ServiceLib.Handler
else else
{ {
SaveLog(result.Description); SaveLog(result.Description);
return false;
} }
} }
catch (Exception ex)
{
SaveLog(ex);
}
return false;
}
public async Task<bool> PutFile(string fileName) public async Task<bool> PutFile(string fileName)
{ {

Loading…
Cancel
Save