summaryrefslogtreecommitdiff
path: root/ot_livesync.c
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2024-03-29 03:30:13 +0100
committerDirk Engling <erdgeist@erdgeist.org>2024-03-29 03:30:13 +0100
commit543ab73017b83e251924caca9aa37a0f892fe05f (patch)
tree7b58b9b4e1e7f05db81f25b50e062fb5ff36c421 /ot_livesync.c
parentede702c7ffc90f1635c069d20c8a46b0b2a6ab66 (diff)
Allow networks to be used instead of ip addresses when blessing is involved
Diffstat (limited to 'ot_livesync.c')
-rw-r--r--ot_livesync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ot_livesync.c b/ot_livesync.c
index cded0f7..75a5f9f 100644
--- a/ot_livesync.c
+++ b/ot_livesync.c
@@ -192,7 +192,7 @@ static void * livesync_worker( void * args ) {
192 /* Expect at least tracker id and packet type */ 192 /* Expect at least tracker id and packet type */
193 if( ws.request_size <= (ssize_t)(sizeof( g_tracker_id ) + sizeof( uint32_t )) ) 193 if( ws.request_size <= (ssize_t)(sizeof( g_tracker_id ) + sizeof( uint32_t )) )
194 continue; 194 continue;
195 if( !accesslist_isblessed(in_ip, OT_PERMISSION_MAY_LIVESYNC)) 195 if( !accesslist_is_blessed(in_ip, OT_PERMISSION_MAY_LIVESYNC))
196 continue; 196 continue;
197 if( !memcmp( ws.inbuf, &g_tracker_id, sizeof( g_tracker_id ) ) ) { 197 if( !memcmp( ws.inbuf, &g_tracker_id, sizeof( g_tracker_id ) ) ) {
198 /* TODO: log packet coming from ourselves */ 198 /* TODO: log packet coming from ourselves */