force ipv4

This commit is contained in:
Jeff Becker 2019-05-09 08:24:38 -04:00
parent 3c3dd65760
commit 8f68ceeb11
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
1 changed files with 4 additions and 0 deletions

View File

@ -134,7 +134,11 @@ namespace llarp
{
RouterID random;
if(GetRouter()->GetRandomGoodRouter(random))
{
msg.AddCNAMEReply(random.ToString(), 1);
auto ip = ObtainServiceNodeIP(random);
msg.AddINReply(ip, false);
}
else
msg.AddNXReply();
reply(msg);