skyformat99
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
src/supernode.c
|
@ -294,9 +294,9 @@ static int setOption (int optkey, char *_optarg, n2n_sn_t *sss) { |
|
|
sss->override_spoofing_protection = 1; |
|
|
sss->override_spoofing_protection = 1; |
|
|
break; |
|
|
break; |
|
|
|
|
|
|
|
|
case 'V': /* community file */ |
|
|
case 'V': /* version text */ |
|
|
strncpy(sss->version, _optarg, sizeof(n2n_version_t) - 1); /* mind the \0 terminator */ |
|
|
strncpy(sss->version, _optarg, sizeof(n2n_version_t) - 1); /* mind the \0 terminator */ |
|
|
|
|
|
break; |
|
|
case 'c': /* community file */ |
|
|
case 'c': /* community file */ |
|
|
sss->community_file = calloc(1, strlen(_optarg) + 1); |
|
|
sss->community_file = calloc(1, strlen(_optarg) + 1); |
|
|
if(sss->community_file) |
|
|
if(sss->community_file) |
|
|