The GOPROXY protocol is quite small to allow to implement such a relay: https://go.dev/ref/mod#goproxy-protocol
https://stackoverflow.com/questions/10383299/how-do-i-config...