mirror of
https://git.phreedom.club/localhost_frssoft/compy.git
synced 2024-11-27 02:21:34 +00:00
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:
parent
6013d28c46
commit
47488248d2
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue