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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user