From 296a78ed565597a81bed4f404bec9fc005a1e9dc Mon Sep 17 00:00:00 2001 From: Ben McClelland Date: Thu, 22 Aug 2024 13:42:18 -0700 Subject: [PATCH] feat: enable ipv6 support for listening socket Fiber allows for dual stack ipv4/ipv6 by setting Network setting to fiber.NetworkTCP. The default is fiber.NetworkTCP4 which is ipv4 only because the dual stack is not compatible with prefork. But we do not use prefork, so it is fine to enable the dual ipv4/ipv6 support. --- cmd/versitygw/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/versitygw/main.go b/cmd/versitygw/main.go index 731bc79..e8eac07 100644 --- a/cmd/versitygw/main.go +++ b/cmd/versitygw/main.go @@ -522,6 +522,7 @@ func runGateway(ctx context.Context, be backend.Backend) error { ServerHeader: "VERSITYGW", StreamRequestBody: true, DisableKeepalive: true, + Network: fiber.NetworkTCP, }) var opts []s3api.Option @@ -559,6 +560,7 @@ func runGateway(ctx context.Context, be backend.Backend) error { admApp := fiber.New(fiber.Config{ AppName: "versitygw", ServerHeader: "VERSITYGW", + Network: fiber.NetworkTCP, }) var admOpts []s3api.AdminOpt