Skip to content

Commit

Permalink
[*] 啊?
Browse files Browse the repository at this point in the history
  • Loading branch information
Muska-Ami committed Oct 2, 2024
1 parent 17d2a4f commit 18e4388
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/api/v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package api
import (
"encoding/json"
"github.com/fatedier/frp/pkg/msg"
"github.com/fatedier/frp/pkg/util/log"
"io"
"net/http"
"net/url"
Expand Down Expand Up @@ -79,6 +80,7 @@ func (s V2Service) SubmitRunId(apiToken string, pMsg *msg.NewProxy, runId string
values := url.Values{}
values.Set("run_id", runId)
values.Set("proxy_name", pMsg.ProxyName)
log.Info(pMsg.ProxyName)
values.Set("api_token", apiToken)
api.RawQuery = values.Encode()
defer func(u *url.URL) {
Expand Down Expand Up @@ -178,6 +180,7 @@ func (s V2Service) CheckProxy(frpToken string, pMsg *msg.NewProxy, apiToken stri

// Proxies basic info
values.Set("proxy_name", pMsg.ProxyName)
log.Info(pMsg.ProxyName)
values.Set("proxy_type", pMsg.ProxyType)
values.Set("use_encryption", BoolToString(pMsg.UseEncryption))
values.Set("use_compression", BoolToString(pMsg.UseCompression))
Expand Down

0 comments on commit 18e4388

Please sign in to comment.