proxy: support server mode of PROXY protocol v1

This commit is contained in:
nadoo committed 2021-08-04 19:13:22 +08:00
1 parent 32e1c37cfe
commit 7486373821
15 files changed
+173 -37

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@ func (s *HTTP) Serve(cc net.Conn) {
c := proxy.NewConn(cc)
req, err := parseRequest(c.Reader())
if err != nil {
log.F("[http] can not parse request from %s", c.RemoteAddr())
log.F("[http] can not parse request from %s, error: %v", c.RemoteAddr(), err)
return
}