Keep connection attempts available for STUN hints and verify signed provenance
This commit is contained in:
1 parent
9aa56e6b56
commit
164a3a1f0f
3 files changed
+16
-4
No files matched your search
@@ -12,7 +12,8 @@
|
||||
uint8_t sock_target_class(uint8_t address_type, uint8_t config_type, const struct address_profile *profile,
|
||||
int public_address, uint64_t now_us) {
|
||||
if (!public_address || config_type == CFG_SERVER_TYPE_PRIVATE || config_type == CFG_SERVER_TYPE_LOCAL) return SOCK_TC_PRIV;
|
||||
if (address_type == TOPO_ADDR_NAT && profile && profile->mapping == ADDRESS_MAP_DEPENDENT) return SOCK_TC_UNREACH;
|
||||
if (address_type == TOPO_ADDR_NAT && profile && profile->source == ADDRESS_SOURCE_ETCP &&
|
||||
profile->mapping == ADDRESS_MAP_DEPENDENT) return SOCK_TC_UNREACH;
|
||||
if (!address_profile_fresh(profile, now_us)) return SOCK_TC_PROBE;
|
||||
if (profile->inbound == ADDRESS_IN_OPEN) return SOCK_TC_PUB;
|
||||
if (profile->inbound == ADDRESS_IN_CONTACT) return SOCK_TC_CONTACT;
|
||||
|
||||
Reference in new issue
Block a user