The middleware is a better solution which I should learn and implement. Thanks!
Nathan Kerr於 2017年1月11日星期三 UTC+8上午11時06分28秒寫道: > > RemoteAddr was completely blank for me. This may be because I am running > macOS. > > The important part is that the different contents of RemoteAddr indicates > that the request came from tcp or unix. > > Dave Cheney's suggestion of skipping the auth for the unix listener is > probably a better solution. > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.