-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
104 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,36 @@ | ||
module github.com/wweir/sower | ||
|
||
go 1.22 | ||
|
||
toolchain go1.22.3 | ||
go 1.23 | ||
|
||
require ( | ||
github.com/cristalhq/aconfig v0.18.5 | ||
github.com/cristalhq/aconfig v0.18.6 | ||
github.com/cristalhq/aconfig/aconfighcl v0.17.1 | ||
github.com/cristalhq/aconfig/aconfigtoml v0.17.1 | ||
github.com/cristalhq/aconfig/aconfigyaml v0.17.1 | ||
github.com/krolaw/dhcp4 v0.0.0-20190909130307-a50d88189771 | ||
github.com/libp2p/go-reuseport v0.4.0 | ||
github.com/miekg/dns v1.1.59 | ||
github.com/oschwald/geoip2-golang v1.9.0 | ||
github.com/miekg/dns v1.1.62 | ||
github.com/oschwald/geoip2-golang v1.11.0 | ||
github.com/pkg/errors v0.9.1 | ||
github.com/sower-proxy/conns v0.0.3 | ||
github.com/sower-proxy/conns v0.1.0 | ||
github.com/sower-proxy/deferlog v1.0.7 | ||
github.com/sower-proxy/mem v0.0.3 | ||
golang.org/x/crypto v0.23.0 | ||
golang.org/x/crypto v0.28.0 | ||
) | ||
|
||
require ( | ||
github.com/BurntSushi/toml v1.3.2 // indirect | ||
github.com/BurntSushi/toml v1.1.0 // indirect | ||
github.com/hashicorp/hcl v1.0.0 // indirect | ||
github.com/mattn/go-colorable v0.1.13 // indirect | ||
github.com/mattn/go-isatty v0.0.20 // indirect | ||
github.com/oschwald/maxminddb-golang v1.12.0 // indirect | ||
github.com/mattn/go-isatty v0.0.19 // indirect | ||
github.com/mitchellh/mapstructure v1.5.0 // indirect | ||
github.com/oschwald/maxminddb-golang v1.13.0 // indirect | ||
github.com/rs/zerolog v1.32.0 // indirect | ||
golang.org/x/mod v0.17.0 // indirect | ||
golang.org/x/net v0.25.0 // indirect | ||
golang.org/x/sync v0.7.0 // indirect | ||
golang.org/x/sys v0.20.0 // indirect | ||
golang.org/x/text v0.15.0 // indirect | ||
golang.org/x/tools v0.21.0 // indirect | ||
golang.org/x/mod v0.18.0 // indirect | ||
golang.org/x/net v0.27.0 // indirect | ||
golang.org/x/sync v0.8.0 // indirect | ||
golang.org/x/sys v0.26.0 // indirect | ||
golang.org/x/text v0.19.0 // indirect | ||
golang.org/x/tools v0.22.0 // indirect | ||
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,22 @@ | ||
package transport | ||
|
||
import ( | ||
"bufio" | ||
"net" | ||
) | ||
|
||
type Transport interface { | ||
Unwrap(conn net.Conn) (net.Addr, error) | ||
Wrap(conn net.Conn, tgtHost string, tgtPort uint16) error | ||
} | ||
|
||
var _ net.Conn = (*BufioConn)(nil) | ||
|
||
type BufioConn struct { | ||
*bufio.Reader | ||
net.Conn | ||
} | ||
|
||
func (c *BufioConn) Read(b []byte) (n int, err error) { | ||
return c.Reader.Read(b) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters