mirror of
https://github.com/hufrea/byedpi.git
synced 2025-03-05 08:35:55 +03:00
parent
f11f5b0d67
commit
77ac202f5c
1 changed files with 5 additions and 1 deletions
6
main.c
6
main.c
|
@ -479,6 +479,7 @@ int main(int argc, char **argv)
|
|||
|
||||
long val = 0;
|
||||
char *end = 0;
|
||||
bool all_limited = 1;
|
||||
|
||||
struct desync_params *dp = add((void *)¶ms.dp,
|
||||
¶ms.dp_count, sizeof(struct desync_params));
|
||||
|
@ -573,6 +574,9 @@ int main(int argc, char **argv)
|
|||
break;
|
||||
|
||||
case 'A':
|
||||
if (!(dp->hosts || dp->proto || dp->pf[0] || dp->detect)) {
|
||||
all_limited = 0;
|
||||
}
|
||||
dp = add((void *)¶ms.dp, ¶ms.dp_count,
|
||||
sizeof(struct desync_params));
|
||||
if (!dp) {
|
||||
|
@ -866,7 +870,7 @@ int main(int argc, char **argv)
|
|||
clear_params();
|
||||
return -1;
|
||||
}
|
||||
if (dp->hosts || dp->proto || dp->pf[0]) {
|
||||
if (all_limited) {
|
||||
dp = add((void *)¶ms.dp,
|
||||
¶ms.dp_count, sizeof(struct desync_params));
|
||||
if (!dp) {
|
||||
|
|
Loading…
Add table
Reference in a new issue