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:
parent
65e13a6041
commit
9faf00065f
2
utils.go
2
utils.go
@ -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 }
|
||||
|
Loading…
x
Reference in New Issue
Block a user