1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-05-07 21:19:07 -04:00

remove rawtcp

This commit is contained in:
Darien Raymond
2017-01-03 14:53:59 +01:00
parent 3732de18b1
commit 31d6e74482
21 changed files with 41 additions and 124 deletions

View File

@@ -68,19 +68,6 @@ func Dial(src v2net.Address, dest v2net.Destination, options internet.DialerOpti
return NewConnection(id, conn, globalCache, tcpSettings), nil
}
func DialRaw(src v2net.Address, dest v2net.Destination, options internet.DialerOptions) (internet.Connection, error) {
log.Info("Internet|TCP: Dailing Raw TCP to ", dest)
conn, err := internet.DialToDest(src, dest)
if err != nil {
return nil, err
}
// TODO: handle dialer options
return &RawConnection{
TCPConn: *conn.(*net.TCPConn),
}, nil
}
func init() {
internet.TCPDialer = Dial
internet.RawTCPDialer = DialRaw
}