Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
Update according nicocha30's reviews
  • Loading branch information
virusvfv authored Jul 11, 2024
1 parent 8c7f3de commit 0b80926
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cmd/agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,6 @@ func wsconnect(config *tls.Config, wsaddr string, proxystr string, useragent str
httpClient := &http.Client{Transport: httpTransport}
httpheader := &http.Header{}
httpheader.Add("User-Agent", useragent)
//Add your additional headers here
//httpheader.Add("X-Blablabla", "Blublublu")

wsConn, _, err := websocket.Dial(ctx, wsaddr, &websocket.DialOptions{HTTPClient: httpClient, HTTPHeader: *httpheader})
if err != nil {
Expand Down

0 comments on commit 0b80926

Please sign in to comment.