use correct path roles

pull/69/head
Jeff Becker 6 years ago
parent 130307bc94
commit a202bc58a8
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -328,7 +328,7 @@ namespace llarp
bool
SupportsAnyRoles(PathRole roles) const
{
return (_role & roles) != 0;
return roles == ePathRoleAny || (_role & roles) != 0;
}
PathStatus

@ -110,9 +110,9 @@ namespace llarp
HasPathToService(const Address& remote) const;
virtual huint32_t
ObtainIPForAddr(const byte_t * addr)
ObtainIPForAddr(const byte_t* addr)
{
(void) addr;
(void)addr;
return {0};
}
@ -150,7 +150,7 @@ namespace llarp
EnsureRouterIsKnown(const RouterID& router);
const Identity&
GetIdentity()
GetIdentity() const
{
return m_Identity;
}

@ -94,7 +94,7 @@ namespace llarp
llarp::LogWarn("could not publish descriptors for endpoint ", Name(),
" because we couldn't get enough valid introductions");
if(ShouldBuildMore(now) || forceRebuild)
ManualRebuild(1);
ManualRebuild(1, llarp::path::ePathRoleInboundHS);
return;
}
m_IntroSet.I.clear();
@ -1159,7 +1159,7 @@ namespace llarp
}
return false;
}
Build(hops);
Build(hops, llarp::path::ePathRoleOutboundHS);
return true;
}

Loading…
Cancel
Save