1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-10 01:40:44 +00:00
This commit is contained in:
Bo He 2021-12-22 22:51:11 +08:00 committed by GitHub
parent fa61371102
commit 79f751662c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,21 +47,21 @@ func newConnectionWithEarlyData(conn *websocket.Conn, remoteAddr net.Addr, early
}
func newConnectionWithDelayedDial(dialer DelayedDialer) *connection {
delayedDialContext, CancellFunc := context.WithCancel(context.Background())
delayedDialContext, cancelFunc := context.WithCancel(context.Background())
return &connection{
shouldWait: true,
delayedDialFinish: delayedDialContext,
finishedDial: CancellFunc,
finishedDial: cancelFunc,
dialer: dialer,
}
}
func newRelayedConnectionWithDelayedDial(dialer DelayedDialerForwarded) *connectionForwarder {
delayedDialContext, CancellFunc := context.WithCancel(context.Background())
delayedDialContext, cancelFunc := context.WithCancel(context.Background())
return &connectionForwarder{
shouldWait: true,
delayedDialFinish: delayedDialContext,
finishedDial: CancellFunc,
finishedDial: cancelFunc,
dialer: dialer,
}
}