|
@ -82,7 +82,7 @@ static int load_allowed_sn_community(n2n_sn_t *sss, char *path) { |
|
|
if(s != NULL) { |
|
|
if(s != NULL) { |
|
|
strncpy((char*)s->community, line, N2N_COMMUNITY_SIZE-1); |
|
|
strncpy((char*)s->community, line, N2N_COMMUNITY_SIZE-1); |
|
|
s->community[N2N_COMMUNITY_SIZE-1] = '\0'; |
|
|
s->community[N2N_COMMUNITY_SIZE-1] = '\0'; |
|
|
/* loaded from file, this community is not to be unpurgeable */ |
|
|
/* loaded from file, this community is unpurgeable */ |
|
|
s->purgeable = COMMUNITY_UNPURGEABLE; |
|
|
s->purgeable = COMMUNITY_UNPURGEABLE; |
|
|
/* we do not know if header encryption is used in this community,
|
|
|
/* we do not know if header encryption is used in this community,
|
|
|
* first packet will show. just in case, setup the key. */ |
|
|
* first packet will show. just in case, setup the key. */ |
|
|