add dummy implementation for mitmConn.LocalAddr()

Fixes panic due to unimplemented method when the stdlib http server
calls this under certain conditions.
For our mitm implementation of net.Conn, an empty address string should be sufficient.
This commit is contained in:
Barna Csorogi 2018-02-05 01:21:11 +01:00
parent 6013d28c46
commit 47488248d2

View file

@ -48,7 +48,7 @@ func (c *mitmConn) RemoteAddr() net.Addr {
}
func (c *mitmConn) LocalAddr() net.Addr {
panic("not implemented")
return addr("")
}
func (c *mitmConn) SetDeadline(t time.Time) error {