fix stream settings check

pull/432/head
Darien Raymond 8 years ago
parent b5d14b6823
commit 4812e66229
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

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

Loading…
Cancel
Save