Projects STRLCPY tun2socks Commits dc6eb815
🤬
  • ■ ■ ■ ■ ■
    .golangci.yaml
    1 1  linters:
    2 2   disable-all: true
    3 3   enable:
     4 + - gci
    4 5   - gofumpt
     6 + - gosimple
     7 + - govet
     8 + - ineffassign
     9 + - misspell
    5 10   - staticcheck
    6  - - govet
    7  - - gci
     11 + - unconvert
     12 + - unused
     13 + - usestdlibvars
    8 14   
    9 15  linters-settings:
    10 16   gci:
     17 + custom-order: true
    11 18   sections:
    12 19   - standard
    13 20   - default
    skipped 4 lines
  • ■ ■ ■ ■
    component/simple-obfs/http.go
    skipped 64 lines
    65 65   if ho.firstRequest {
    66 66   randBytes := make([]byte, 16)
    67 67   rand.Read(randBytes)
    68  - req, _ := http.NewRequest("GET", fmt.Sprintf("http://%s/", ho.host), bytes.NewBuffer(b[:]))
     68 + req, _ := http.NewRequest(http.MethodGet, fmt.Sprintf("http://%s/", ho.host), bytes.NewBuffer(b[:]))
    69 69   req.Header.Set("User-Agent", fmt.Sprintf("curl/7.%d.%d", mRand.Int()%54, mRand.Int()%2))
    70 70   req.Header.Set("Upgrade", "websocket")
    71 71   req.Header.Set("Connection", "Upgrade")
    skipped 25 lines
Please wait...
Page is in error, reload to recover