mirror of
https://git.phreedom.club/localhost_frssoft/compy.git
synced 2025-03-20 05:19:47 +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
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ func (c *mitmConn) RemoteAddr() net.Addr {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *mitmConn) LocalAddr() net.Addr {
|
func (c *mitmConn) LocalAddr() net.Addr {
|
||||||
panic("not implemented")
|
return addr("")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *mitmConn) SetDeadline(t time.Time) error {
|
func (c *mitmConn) SetDeadline(t time.Time) error {
|
||||||
|
|
Loading…
Add table
Reference in a new issue