mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-06-08 03:59:11 -04:00
step 1 to remove reference to net package
This commit is contained in:
@@ -4,13 +4,13 @@ import (
|
||||
"context"
|
||||
|
||||
"v2ray.com/core/common"
|
||||
v2net "v2ray.com/core/common/net"
|
||||
"v2ray.com/core/common/net"
|
||||
"v2ray.com/core/transport/internet"
|
||||
)
|
||||
|
||||
func init() {
|
||||
common.Must(internet.RegisterTransportDialer(internet.TransportProtocol_UDP,
|
||||
func(ctx context.Context, dest v2net.Destination) (internet.Connection, error) {
|
||||
func(ctx context.Context, dest net.Destination) (internet.Connection, error) {
|
||||
src := internet.DialerSourceFromContext(ctx)
|
||||
conn, err := internet.DialSystem(ctx, src, dest)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user