finish stubbing out noise transport stuff
This commit is contained in:
@ -15,12 +15,12 @@ type NoiseConn struct {
|
||||
|
||||
// Close implements net.Conn.
|
||||
func (n *NoiseConn) Close() error {
|
||||
panic("unimplemented")
|
||||
return n.Close()
|
||||
}
|
||||
|
||||
// LocalAddr implements net.Conn.
|
||||
func (n *NoiseConn) LocalAddr() net.Addr {
|
||||
panic("unimplemented")
|
||||
return &n.Noise.RouterAddress
|
||||
}
|
||||
|
||||
// Read implements net.Conn.
|
||||
|
@ -13,12 +13,12 @@ type NoisePacketConn struct {
|
||||
// Close implements net.PacketConn.
|
||||
// Subtle: this method shadows the method (PacketConn).Close of NoisePacketConn.PacketConn.
|
||||
func (n *NoisePacketConn) Close() error {
|
||||
panic("unimplemented")
|
||||
return n.PacketConn.Close()
|
||||
}
|
||||
|
||||
// LocalAddr implements net.PacketConn.
|
||||
func (n *NoisePacketConn) LocalAddr() net.Addr {
|
||||
panic("unimplemented")
|
||||
return &n.Noise.RouterAddress
|
||||
}
|
||||
|
||||
// ReadFrom implements net.PacketConn.
|
||||
|
Reference in New Issue
Block a user