codegangsta / gin

Live reload utility for Go web servers
MIT License
4.23k stars 317 forks source link

Config.Laddr default value localhost. #173

Open swengineer404 opened 2 years ago

swengineer404 commented 2 years ago

When creating a listener with an empty address, the listener will assume any interface (0.0.0.0). This will trigger firewall permissions to be granted every time a unique binary is generated. This can be problematic during tests as the binary has a unique name by default.

Since this is a proxy for development sake. It is safe to assume if Config.Laddr is not provided we can use localhost to avoid the firewall module.