[#131] client: pass PrmDialOptions to dial call

Signed-off-by: olefirenque <egor.olefirenko892@gmail.com>
This commit is contained in:
Egor Olefirenko 2023-12-07 12:14:13 +03:00
parent 7b03c3a6a1
commit aa536d4a4d

View file

@ -118,7 +118,7 @@ func (c *Client) netMapDialNode(ctx context.Context, node *netmap.NodeInfo, prm
addresses := node.ExternalAddresses()
dialAddr := func(addr string) error {
err := c.Dial(ctx, PrmDial{Endpoint: addr})
err := c.Dial(ctx, PrmDial{Endpoint: addr, PrmDialOptions: prm.PrmDialOptions})
if err != nil {
if !prm.FallbackToAvailableAddress {
return err