Skip to content

Commit

Permalink
use node 16
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny-Dasilva committed Jan 8, 2024
1 parent 4695ef1 commit 1588603
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 537 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/manual_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [15.x]
node-version: [16.x]
go-version: ['1.20']
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
node-version: [15.x]
node-version: [16.x]
go-version: ['1.20']
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

strategy:
matrix:
node-version: [14.x]
node-version: [16.x]
go-version: ['1.20']
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_npm_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

strategy:
matrix:
node-version: [15.x]
node-version: [16.x]
go-version: ['1.20']
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Table of contents
## Dependencies

```
node ^v14.0
node ^v16.0
golang ^v1.20x
```

Expand Down
25 changes: 0 additions & 25 deletions cycletls/connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,31 +78,6 @@ func newConnectDialer(proxyURLStr string, UserAgent string) (proxy.ContextDialer
if proxyURL.Port() == "" {
proxyURL.Host = net.JoinHostPort(proxyURL.Host, "443")
}
// case "socks5h":
// var auth *Auth
// if proxyURL.User != nil {
// if proxyURL.User.Username() != "" {
// username := proxyURL.User.Username()
// password, _ := proxyURL.User.Password()
// auth = &Auth{User: username, Password: password}
// }
// }
// var forward proxy.Dialer
// if proxyURL.Scheme == "socks5h" {
// forward = proxy.Direct
// }
// dialSocksProxy, err := SOCKS5("tcp", proxyURL.Host, auth, forward)
// if err != nil {
// return nil, fmt.Errorf("Error creating SOCKS5 proxy, reason %s", err)
// }
// log.Println("aaaaa")
// if contextDialer, ok := dialSocksProxy.(proxy.ContextDialer); ok {
// client.Dialer = contextDialer
// } else {
// return nil, errors.New("failed type assertion to DialContext")
// }
// client.DefaultHeader.Set("User-Agent", UserAgent)
// return client, nil
case "socks5", "socks5h":
var auth *proxy.Auth
if proxyURL.User != nil {
Expand Down
Loading

0 comments on commit 1588603

Please sign in to comment.