Skip to content

Commit

Permalink
Remove XTLS WriteMultiBuffer method
Browse files Browse the repository at this point in the history
  • Loading branch information
RPRX authored Oct 13, 2020
1 parent cc0f6e6 commit d1ed330
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions transport/internet/xtls/xtls.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,15 @@ package xtls
import (
xtls "github.com/xtls/go"

"v2ray.com/core/common/buf"
"v2ray.com/core/common/net"
)

//go:generate go run v2ray.com/core/common/errors/errorgen

var (
_ buf.Writer = (*Conn)(nil)
)

type Conn struct {
*xtls.Conn
}

func (c *Conn) WriteMultiBuffer(mb buf.MultiBuffer) error {
mb = buf.Compact(mb)
mb, err := buf.WriteMultiBuffer(c, mb)
buf.ReleaseMulti(mb)
return err
}

func (c *Conn) HandshakeAddress() net.Address {
if err := c.Handshake(); err != nil {
return nil
Expand Down

0 comments on commit d1ed330

Please sign in to comment.