Code Monkey home page Code Monkey logo

Comments (6)

negrel avatar negrel commented on May 21, 2024 1

I believe adding an option for DialDualStack won't hurt. As a fiber user, I'm forced to fork proxy middleware to enable it as my cloud provider only support IPv6 for internal networking.

I can contribute if needed.

from fiber.

sixcolors avatar sixcolors commented on May 21, 2024

bug filed with upstream package valyala/fasthttp#1730

from fiber.

sixcolors avatar sixcolors commented on May 21, 2024

Erik Dubbelboer from upstream issue:

This is because vite only listens on IPv6 and fasthttp doesn't try dialing IPv6 by default. If you change the code to this it works:

	client := fasthttp.Client{
		DialDualStack: true,
	}
	statusCode, body, err := client.Get(nil, "http://localhost:5173")

from fiber.

sixcolors avatar sixcolors commented on May 21, 2024

Further ref for Vite/node: vitejs/vite#2032

https://nodejs.org/api/net.html#net_server_listen_options_callback

vitejs/vite#8543

from fiber.

sixcolors avatar sixcolors commented on May 21, 2024

Should we support dual stack be default in the client for proxy middleware?

from fiber.

gaby avatar gaby commented on May 21, 2024

@negrel Agree we should add an option to allow either ipv4, ipv6 or DialDual to the middleware. Sounds reasonable to me.

from fiber.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.