mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-02-21 01:42:18 +00:00
Small fixes while testing directory services
This commit is contained in:
parent
d0ae11d419
commit
dac67c7059
@ -117,6 +117,7 @@ int directory_service_init(){
|
||||
INFOF("ADD DIRECTORY SERVICE %s", alloca_tohex_sid_t(directory_service->sid));
|
||||
}
|
||||
}
|
||||
unschedule(&directory_alarm);
|
||||
directory_update(&directory_alarm);
|
||||
return 0;
|
||||
}
|
||||
|
@ -295,7 +295,7 @@ int overlay_mdp_service_stun(struct internal_mdp_header *header, struct overlay_
|
||||
addr.inet.sin_addr.s_addr = ob_get_ui32(payload);
|
||||
addr.inet.sin_port = ob_get_ui16(payload);
|
||||
|
||||
if (!subscriber || (subscriber->reachable!=REACHABLE_NONE))
|
||||
if (!subscriber || (subscriber->reachable&REACHABLE_DIRECT))
|
||||
continue;
|
||||
|
||||
struct network_destination *destination = create_unicast_destination(&addr, NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user