//TODO: Add a test to ensure udpAddr is copied and not reused
Add a test to ensure udpAddr is copied and not reused
// TODO : Add a test to ensure udpAddr is copied and not reused
func TestOldIPv4Only(t *testing.T) {
	b := []byte{8, 129, 130, 132, 80, 16, 10}
	var m Ip4AndPort
	err := proto.Unmarshal(b, &m)
	assert.NoError(t, err)
	assert.Equal(t, "10.1.1.1", iputil.VpnIp(m.GetIp()).String())
}
func TestOldIPv4Only ( t * testing . T ) { b := [ ] byte { 8 , 129 , 130 , 132 , 80 , 16 , 10 } var m Ip4AndPort err := proto . Unmarshal ( b , & m ) assert . NoError ( t , err ) assert . Equal ( t , " " , iputil . VpnIp ( m . GetIp ( ) ) . String ( ) ) }
Add a test to ensure udpAddr is copied and not reused
Add a test to ensure udpAddr is copied and not reused
// This test ensures our new ipv6 enabled LH protobuf IpAndPorts works with the old style to enable backwards compatibility