In the base layer DHT, we allow nodes to add ENRs into the node table even when the IP on the ENR doesn't match the endpoint they are sending from. This is to make NAT discovery work through reflected packets.
This policy is not appropriate for the topic index, however, since it would open an attack vector where nodes can try to submit multiple ENRs with different IPs to work around the address restrictions in the ad cache. So it is better to strictly enforce the IP and UDP source port being equal to the ENR information in order to place an ad.
In the base layer DHT, we allow nodes to add ENRs into the node table even when the IP on the ENR doesn't match the endpoint they are sending from. This is to make NAT discovery work through reflected packets.
This policy is not appropriate for the topic index, however, since it would open an attack vector where nodes can try to submit multiple ENRs with different IPs to work around the address restrictions in the ad cache. So it is better to strictly enforce the IP and UDP source port being equal to the ENR information in order to place an ad.