From 95a094e35593f7458c7ecb539ec1c9d40e14a9ed Mon Sep 17 00:00:00 2001 From: CI Bot Date: Sat, 31 Aug 2024 10:01:24 +0000 Subject: [PATCH] Update vendored dependencies --- go.mod | 4 ++-- go.sum | 8 ++++---- vendor/github.com/cloudfoundry/go-socks5/.gitignore | 3 +++ vendor/github.com/cloudfoundry/go-socks5/socks5.go | 9 +++++++++ vendor/modules.txt | 6 +++--- 5 files changed, 21 insertions(+), 9 deletions(-) diff --git a/go.mod b/go.mod index 5fe1821f..c5beaa89 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ require ( code.cloudfoundry.org/tlsconfig v0.1.0 github.com/bmatcuk/doublestar v1.3.4 github.com/charlievieth/fs v0.0.3 - github.com/cloudfoundry/socks5-proxy v0.2.121 + github.com/cloudfoundry/socks5-proxy v0.2.122 github.com/jessevdk/go-flags v1.6.1 github.com/jpillora/backoff v1.0.0 github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d @@ -20,7 +20,7 @@ require ( ) require ( - github.com/cloudfoundry/go-socks5 v0.0.0-20180221174514-54f73bdb8a8e // indirect + github.com/cloudfoundry/go-socks5 v0.0.0-20240831012420-2590b55236ee // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/go-logr/logr v1.4.2 // indirect github.com/go-task/slim-sprig/v3 v3.0.0 // indirect diff --git a/go.sum b/go.sum index ab28f2ef..d0aac3b1 100644 --- a/go.sum +++ b/go.sum @@ -8,10 +8,10 @@ github.com/bmatcuk/doublestar v1.3.4 h1:gPypJ5xD31uhX6Tf54sDPUOBXTqKH4c9aPY66CyQ github.com/bmatcuk/doublestar v1.3.4/go.mod h1:wiQtGV+rzVYxB7WIlirSN++5HPtPlXEo9MEoZQC/PmE= github.com/charlievieth/fs v0.0.3 h1:3lZQXTj4PbE81CVPwALSn+JoyCNXkZgORHN6h2XHGlg= github.com/charlievieth/fs v0.0.3/go.mod h1:hD4sRzto1Hw8zCua76tNVKZxaeZZr1RiKftjAJQRLLo= -github.com/cloudfoundry/go-socks5 v0.0.0-20180221174514-54f73bdb8a8e h1:FQdRViaoDphGRfgrotl2QGsX1gbloe57dbGBS5CG6KY= -github.com/cloudfoundry/go-socks5 v0.0.0-20180221174514-54f73bdb8a8e/go.mod h1:PXmcacyJB/pJjSxEl15IU6rEIKXrhZQRzsr0UTkgNNs= -github.com/cloudfoundry/socks5-proxy v0.2.121 h1:TiWZlwHCDUrPt+diReZp4kwXocwufKWE/JybLOsWsxo= -github.com/cloudfoundry/socks5-proxy v0.2.121/go.mod h1:mNi+PGrviQiW+h5JOfZ7G4/ppmIdD2V1I+k3PzV14ow= +github.com/cloudfoundry/go-socks5 v0.0.0-20240831012420-2590b55236ee h1:88ruSYvCUKX2YcF2CMYVTmPGITvNdRbzaBRk2c/iMds= +github.com/cloudfoundry/go-socks5 v0.0.0-20240831012420-2590b55236ee/go.mod h1:72EEm1oq5oXqGfu9XGtaRPWEcAFYd/P10cMNln0QhA8= +github.com/cloudfoundry/socks5-proxy v0.2.122 h1:Gh6rP/P2gcx6lZZ2dNVComumven0RbST3NRTC8PNd9M= +github.com/cloudfoundry/socks5-proxy v0.2.122/go.mod h1:HU6mWPd37l6Yw+H98Kffb+5KP6o2l749kw054psBsUM= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/vendor/github.com/cloudfoundry/go-socks5/.gitignore b/vendor/github.com/cloudfoundry/go-socks5/.gitignore index 00268614..79aa76b8 100644 --- a/vendor/github.com/cloudfoundry/go-socks5/.gitignore +++ b/vendor/github.com/cloudfoundry/go-socks5/.gitignore @@ -20,3 +20,6 @@ _cgo_export.* _testmain.go *.exe +.idea +go.sum +vendor diff --git a/vendor/github.com/cloudfoundry/go-socks5/socks5.go b/vendor/github.com/cloudfoundry/go-socks5/socks5.go index b8816a30..23b5f863 100644 --- a/vendor/github.com/cloudfoundry/go-socks5/socks5.go +++ b/vendor/github.com/cloudfoundry/go-socks5/socks5.go @@ -105,6 +105,15 @@ func (s *Server) ListenAndServe(network, addr string) error { return s.Serve(l) } +// Listen only starts listening, useful if you want to block and wait for listening before serving +func (s *Server) Listen(network, addr string) (net.Listener, error) { + l, err := net.Listen(network, addr) + if err != nil { + return nil, err + } + return l, nil +} + // Serve is used to serve connections from a listener func (s *Server) Serve(l net.Listener) error { for { diff --git a/vendor/modules.txt b/vendor/modules.txt index 7ba7147f..69d148cc 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -11,10 +11,10 @@ github.com/bmatcuk/doublestar # github.com/charlievieth/fs v0.0.3 ## explicit; go 1.18 github.com/charlievieth/fs -# github.com/cloudfoundry/go-socks5 v0.0.0-20180221174514-54f73bdb8a8e -## explicit +# github.com/cloudfoundry/go-socks5 v0.0.0-20240831012420-2590b55236ee +## explicit; go 1.21.0 github.com/cloudfoundry/go-socks5 -# github.com/cloudfoundry/socks5-proxy v0.2.121 +# github.com/cloudfoundry/socks5-proxy v0.2.122 ## explicit; go 1.21.0 github.com/cloudfoundry/socks5-proxy # github.com/davecgh/go-spew v1.1.1