1
0
mirror of https://github.com/gofiber/fiber.git synced 2025-02-23 10:03:45 +00:00

fix infinite recursive call

This commit is contained in:
Fenny 2020-02-21 02:01:37 +01:00
parent 65e13a6041
commit 9faf00065f

View File

@ -151,7 +151,7 @@ func (c *testConn) RemoteAddr() net.Addr {
IP: net.IPv4(0, 0, 0, 0),
}
}
func (c *testConn) LocalAddr() net.Addr { return c.LocalAddr() }
func (c *testConn) LocalAddr() net.Addr { return c.RemoteAddr() }
func (c *testConn) Read(b []byte) (int, error) { return c.r.Read(b) }
func (c *testConn) Write(b []byte) (int, error) { return c.w.Write(b) }
func (c *testConn) Close() error { return nil }