finish stubbing out noise transport stuff

This commit is contained in:
eyedeekay
2024-07-01 21:37:05 -04:00
parent a7e31b7833
commit 6c62faa49b
2 changed files with 4 additions and 4 deletions

View File

@ -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.

View File

@ -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.