Skip to content

Commit

Permalink
fix wrong socks proxy file naming
Browse files Browse the repository at this point in the history
  • Loading branch information
shimmeris committed Jan 4, 2023
1 parent 2a79e10 commit a48f335
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions function/code.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
_ "embed"
"encoding/base64"


"github.com/sirupsen/logrus"
)

Expand All @@ -31,14 +32,13 @@ var (

//go:embed socks/tencent
tencentSocksCode []byte
TencentSocksCodeZip = CreateZipBase64([]File{{Name: "index.py", Content: tencentSocksCode, HighPriv: true}})
TencentSocksCodeZip = CreateZipBase64([]File{{Name: "main", Content: tencentSocksCode, HighPriv: true}})

//go:embed socks/alibaba
alibabaSocksCode []byte
AlibabaSocksCodeZip = CreateZipBase64([]File{{Name: "index.py", Content: alibabaSocksCode, HighPriv: true}})
)

AlibabaSocksCodeZip = CreateZipBase64([]File{{Name: "main", Content: alibabaSocksCode, HighPriv: true}})

)

func CreateZipBase64(files []File) string {
buf := new(bytes.Buffer)
Expand Down

0 comments on commit a48f335

Please sign in to comment.