mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
general: optimize domain parts operations
This commit is contained in:
1 parent
3a6fd63bc0
commit
a118ec5837
14 files changed
+51
-65
No files matched your search
@@ -39,7 +39,7 @@ const (
|
||||
CmdUDP byte = 2
|
||||
)
|
||||
|
||||
// Client is a vmess client
|
||||
// Client is a vmess client.
|
||||
type Client struct {
|
||||
users []*User
|
||||
count int
|
||||
@@ -47,7 +47,7 @@ type Client struct {
|
||||
security byte
|
||||
}
|
||||
|
||||
// Conn is a connection to vmess server
|
||||
// Conn is a connection to vmess server.
|
||||
type Conn struct {
|
||||
user *User
|
||||
opt byte
|
||||
@@ -142,7 +142,7 @@ func (c *Client) NewConn(rc net.Conn, target string) (*Conn, error) {
|
||||
return conn, nil
|
||||
}
|
||||
|
||||
// Auth send auth info: HMAC("md5", UUID, UTC)
|
||||
// Auth send auth info: HMAC("md5", UUID, UTC).
|
||||
func (c *Conn) Auth() error {
|
||||
ts := pool.GetBuffer(8)
|
||||
defer pool.PutBuffer(ts)
|
||||
|
||||
Reference in new issue
Block a user