Skip to content

Commit

Permalink
Removing old gitlab dep
Browse files Browse the repository at this point in the history
  • Loading branch information
gboddin committed Nov 11, 2021
1 parent 1ff79f4 commit 6707244
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ go 1.15
require (
github.com/PuerkitoBio/goquery v1.6.1
github.com/andybalholm/cascadia v1.2.0 // indirect
gitlab.nobody.run/tbi/socksme v0.0.0-20201130024528-3ad02d4108c5
golang.org/x/net v0.0.0-20210428140749-89ef3d95e781 // indirect
)
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ github.com/PuerkitoBio/goquery v1.6.1/go.mod h1:GsLWisAFVj4WgDibEWF4pvYnkVQBpKBK
github.com/andybalholm/cascadia v1.1.0/go.mod h1:GsXiBklL0woXo1j/WYWtSYYC4ouU9PqHO0sqidkEA4Y=
github.com/andybalholm/cascadia v1.2.0 h1:vuRCkM5Ozh/BfmsaTm26kbjm0mIOM3yS5Ek/F5h18aE=
github.com/andybalholm/cascadia v1.2.0/go.mod h1:YCyR8vOZT9aZ1CHEd8ap0gMVm2aFgxBp0T0eFw1RUQY=
gitlab.nobody.run/tbi/socksme v0.0.0-20201130024528-3ad02d4108c5 h1:OUBbWsRDwvD6Nu6rP8PN6xGxIxXpVPBPBE9iuvDQH90=
gitlab.nobody.run/tbi/socksme v0.0.0-20201130024528-3ad02d4108c5/go.mod h1:2R0aT7bhH9+xiSielZpKS/TL4nTki1jxOCCgXN8BzV8=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/net v0.0.0-20180218175443-cbe0f9307d01/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
Expand Down
7 changes: 1 addition & 6 deletions l9plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"crypto/tls"
"fmt"
"github.com/PuerkitoBio/goquery"
"gitlab.nobody.run/tbi/socksme"
"net"
"net/http"
"strings"
Expand Down Expand Up @@ -62,10 +61,6 @@ func (plugin ServicePluginBase) DialContext(ctx context.Context, network string,

}
return conn, err
// If you want to use a socks proxy ... Making network.go its own library soon.
//TODO : implement socks proxy support
return socksme.NewDialer("tcp", fmt.Sprintf("127.0.0.1:2250")).
DialContext(ctx, "tcp", addr)
}

func (plugin ServicePluginBase) GetHttpClient(ctx context.Context, ip string, port string) *http.Client {
Expand Down Expand Up @@ -177,4 +172,4 @@ func (request *WebPluginRequest) AddTag(tag string) {
if !request.HasTag(tag) {
request.Tags = append(request.Tags, tag)
}
}
}

0 comments on commit 6707244

Please sign in to comment.