go-libp2p icon indicating copy to clipboard operation
go-libp2p copied to clipboard

Rate limit new quic connections

Open sukunrt opened this issue 1 year ago • 1 comments
trafficstars

quic-go provides the ability to gate connections with the config.GetConfigForClient callback and to verify the source address of packets with transport.VerifySourceAddress callback.

We should GetConfigForClient this to rate limit new connections and plug the connection gater and the conn limiter here so that users can do their custom limiting.

	// GetConfigForClient is called for incoming connections.
	// If the error is not nil, the connection attempt is refused.
	GetConfigForClient func(info *ClientHelloInfo) (*Config, error)

sukunrt avatar Jun 27 '24 08:06 sukunrt

would like to work on this

rose2221 avatar May 20 '25 12:05 rose2221