mirror of https://gitlab.com/veilid/veilid.git
Compare commits
3 Commits
731b3eeda1
...
145f5bd4e7
Author | SHA1 | Date |
---|---|---|
Adam Leskis | 145f5bd4e7 | |
Christien Rioux | aec31443a0 | |
Adam Leskis | 563b7c358a |
|
@ -109,3 +109,7 @@ To start your headless Veilid node without systemd, run:
|
|||
```shell
|
||||
sudo -u veilid veilid-server
|
||||
```
|
||||
|
||||
## Post Install
|
||||
|
||||
To let veilid access other nodes, you'll need to open up access to port 5150 for both tcp and udp. You can additionally open port 5151 as well, though if 5150 is open, that should be enough.
|
||||
|
|
|
@ -163,10 +163,21 @@ impl RoutingTable {
|
|||
if e.has_node_info(RoutingDomain::LocalNetwork.into()) {
|
||||
return false;
|
||||
}
|
||||
let Some(node_info) = e.node_info(RoutingDomain::PublicInternet) else {
|
||||
let Some(signed_node_info) = e.signed_node_info(RoutingDomain::PublicInternet) else {
|
||||
return false;
|
||||
};
|
||||
|
||||
// Until we have a way of reducing a SignedRelayedNodeInfo to a SignedDirectNodeInfo
|
||||
// See https://gitlab.com/veilid/veilid/-/issues/381
|
||||
// We should consider nodes with allocated relays as disqualified from being a relay themselves
|
||||
// due to limitations in representing the PeerInfo for relays that also have relays.
|
||||
let node_info = match signed_node_info {
|
||||
SignedNodeInfo::Direct(d) => d.node_info(),
|
||||
SignedNodeInfo::Relayed(_) => {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
// Disqualify nodes that don't have relay capability or require a relay themselves
|
||||
if !(node_info.has_capability(CAP_RELAY) && node_info.is_fully_direct_inbound()) {
|
||||
// Needs to be able to accept packets to relay directly
|
||||
|
|
Loading…
Reference in New Issue