For example, I used go to build an http proxy. The IP is 192.168.1.100 and the port is 80. After testing the proxy, there is no problem. Now I resolve a domain name to this IP. Direct access is not possible. If you want to achieve this effect, you should How to do it, forward it once with nginx?
When go starts, is it bound to the IP address instead of 0.0.0.0? Use netstat -antp to check that the local computer of go is 0.0.0.0:80