1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

Merge pull request #1564 from majestrate/exit-backwards-comapt-issue-2021-03-03

unbreak ipv4 exits
This commit is contained in:
Jeff 2021-03-04 14:30:53 -05:00 committed by GitHub
commit d5baeaa425
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -1046,7 +1046,7 @@ namespace llarp
if (t == service::eProtocolExit)
{
if (pkt.IsV4())
dst = pkt.dst4to6Lan();
dst = pkt.dst4to6();
else if (pkt.IsV6())
{
dst = pkt.dstv6();
@ -1065,7 +1065,7 @@ namespace llarp
if (pkt.IsV4())
{
dst = m_OurIP;
src = pkt.src4to6Lan();
src = pkt.src4to6();
}
else if (pkt.IsV6())
{

View file

@ -263,6 +263,7 @@ namespace llarp::rpc
return;
}
auto onGoodResult = [r, reply](std::string reason) {
r->routePoker().Enable();
r->routePoker().Up();
reply(CreateJSONResponse(reason));
};