Skip to content

Commit 749bb34

Browse files
committed
bug fixes
1 parent e3be6b7 commit 749bb34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clashN/clashN/Handler/MainFormHandler.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ public async void ClashSetActiveProxy(string name, string nameNode)
324324
{
325325
try
326326
{
327-
var url = $"{GetApiUrl()}/proxies/";
327+
var url = $"{GetApiUrl()}/proxies/{name}";
328328
Dictionary<string, string> headers = new Dictionary<string, string>();
329329
headers.Add("name", nameNode);
330330
await HttpClientHelper.GetInstance().PutAsync(url, headers);
@@ -392,7 +392,7 @@ public async void ClashConnectionClose(string id)
392392
{
393393
try
394394
{
395-
var url = $"{GetApiUrl()}/connections/";
395+
var url = $"{GetApiUrl()}/connections/{id}";
396396
await HttpClientHelper.GetInstance().DeleteAsync(url);
397397
}
398398
catch (Exception ex)

0 commit comments

Comments
 (0)