From 3a673018f18e052e6dd41ecb69ea03367d283a9f Mon Sep 17 00:00:00 2001 From: Shaun Davis Date: Tue, 4 Feb 2025 11:56:23 -0600 Subject: [PATCH] Set network when dialing agent (#4204) --- go.mod | 2 +- go.sum | 4 ++-- internal/command/apps/apps.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index eee642efc4..779204ee54 100644 --- a/go.mod +++ b/go.mod @@ -75,7 +75,7 @@ require ( github.com/spf13/pflag v1.0.6 github.com/spf13/viper v1.19.0 github.com/stretchr/testify v1.10.0 - github.com/superfly/fly-go v0.1.39 + github.com/superfly/fly-go v0.1.40 github.com/superfly/graphql v0.2.5 github.com/superfly/lfsc-go v0.1.1 github.com/superfly/macaroon v0.2.14-0.20240819201738-61a02aa53648 diff --git a/go.sum b/go.sum index 2337360195..7fc8911fda 100644 --- a/go.sum +++ b/go.sum @@ -633,8 +633,8 @@ github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOf github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= -github.com/superfly/fly-go v0.1.39 h1:W6O8/9lZOetFn3yPKm/uV0fwyezgspvIYWXlyDNP9Bs= -github.com/superfly/fly-go v0.1.39/go.mod h1:lad5/CIMPpYvuAYQSwT8C154xuZPgBmhbkLwgau5V+o= +github.com/superfly/fly-go v0.1.40 h1:/s8vbjj/16aPlxdM2sU0uoIAjDqJ2OrkVrqMTX0I6dY= +github.com/superfly/fly-go v0.1.40/go.mod h1:lad5/CIMPpYvuAYQSwT8C154xuZPgBmhbkLwgau5V+o= github.com/superfly/graphql v0.2.5 h1:61TUt5MrWxlOpdipfYNl9TsG0dXnvb3tkkn/Dre2GcA= github.com/superfly/graphql v0.2.5/go.mod h1:CVfDl31srm8HnJ9udwLu6hFNUW/P6GUM2dKcG1YQ8jc= github.com/superfly/lfsc-go v0.1.1 h1:dGjLgt81D09cG+aR9lJZIdmonjZSR5zYCi7s54+ZU2Q= diff --git a/internal/command/apps/apps.go b/internal/command/apps/apps.go index b8ed6432c1..41c03093ae 100644 --- a/internal/command/apps/apps.go +++ b/internal/command/apps/apps.go @@ -53,7 +53,7 @@ func BuildContext(ctx context.Context, app *fly.AppCompact) (context.Context, er return nil, fmt.Errorf("can't establish agent %w", err) } - dialer, err := agentclient.Dialer(ctx, app.Organization.Slug, "") + dialer, err := agentclient.Dialer(ctx, app.Organization.Slug, app.Network) if err != nil { return nil, fmt.Errorf("can't build tunnel for %s: %s", app.Organization.Slug, err) }