1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 01:57:12 -05:00

fix stream settings check

This commit is contained in:
Darien Raymond 2017-02-04 00:27:16 +01:00
parent b5d14b6823
commit 4812e66229
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -93,7 +93,8 @@ func (h *Handler) Dial(ctx context.Context, dest v2net.Destination) (internet.Co
if h.senderSettings.Via != nil {
ctx = internet.ContextWithDialerSource(ctx, h.senderSettings.Via.AsAddress())
}
if h.senderSettings != nil {
if h.senderSettings.StreamSettings != nil {
ctx = internet.ContextWithStreamSettings(ctx, h.senderSettings.StreamSettings)
}
}