Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
2dust committed Apr 14, 2023
1 parent e3be6b7 commit 749bb34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clashN/clashN/Handler/MainFormHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ public async void ClashSetActiveProxy(string name, string nameNode)
{
try
{
var url = $"{GetApiUrl()}/proxies/";
var url = $"{GetApiUrl()}/proxies/{name}";
Dictionary<string, string> headers = new Dictionary<string, string>();
headers.Add("name", nameNode);
await HttpClientHelper.GetInstance().PutAsync(url, headers);
Expand Down Expand Up @@ -392,7 +392,7 @@ public async void ClashConnectionClose(string id)
{
try
{
var url = $"{GetApiUrl()}/connections/";
var url = $"{GetApiUrl()}/connections/{id}";
await HttpClientHelper.GetInstance().DeleteAsync(url);
}
catch (Exception ex)
Expand Down

0 comments on commit 749bb34

Please sign in to comment.