mirror of
https://github.com/ginuerzh/gosocks5.git
synced 2024-08-11 17:54:31 +00:00
printable for userpass
This commit is contained in:
@@ -176,6 +176,11 @@ func (req *UserPassRequest) Write(w io.Writer) error {
|
||||
return err
|
||||
}
|
||||
|
||||
func (req *UserPassRequest) String() string {
|
||||
return fmt.Sprintf("%d %s:%s",
|
||||
req.Version, req.Username, req.Password)
|
||||
}
|
||||
|
||||
/*
|
||||
Username/Password authentication response
|
||||
+----+--------+
|
||||
@@ -219,6 +224,11 @@ func (res *UserPassResponse) Write(w io.Writer) error {
|
||||
return err
|
||||
}
|
||||
|
||||
func (res *UserPassResponse) String() string {
|
||||
return fmt.Sprintf("%d %d",
|
||||
res.Version, res.Status)
|
||||
}
|
||||
|
||||
type Addr struct {
|
||||
Type uint8
|
||||
Host string
|
||||
|
||||
Reference in New Issue
Block a user