mirror of
https://github.com/hufrea/byedpi.git
synced 2024-12-22 06:15:14 +00:00
parent
f11f5b0d67
commit
77ac202f5c
6
main.c
6
main.c
@ -479,6 +479,7 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
long val = 0;
|
long val = 0;
|
||||||
char *end = 0;
|
char *end = 0;
|
||||||
|
bool all_limited = 1;
|
||||||
|
|
||||||
struct desync_params *dp = add((void *)¶ms.dp,
|
struct desync_params *dp = add((void *)¶ms.dp,
|
||||||
¶ms.dp_count, sizeof(struct desync_params));
|
¶ms.dp_count, sizeof(struct desync_params));
|
||||||
@ -573,6 +574,9 @@ int main(int argc, char **argv)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'A':
|
case 'A':
|
||||||
|
if (!(dp->hosts || dp->proto || dp->pf[0] || dp->detect)) {
|
||||||
|
all_limited = 0;
|
||||||
|
}
|
||||||
dp = add((void *)¶ms.dp, ¶ms.dp_count,
|
dp = add((void *)¶ms.dp, ¶ms.dp_count,
|
||||||
sizeof(struct desync_params));
|
sizeof(struct desync_params));
|
||||||
if (!dp) {
|
if (!dp) {
|
||||||
@ -866,7 +870,7 @@ int main(int argc, char **argv)
|
|||||||
clear_params();
|
clear_params();
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (dp->hosts || dp->proto || dp->pf[0]) {
|
if (all_limited) {
|
||||||
dp = add((void *)¶ms.dp,
|
dp = add((void *)¶ms.dp,
|
||||||
¶ms.dp_count, sizeof(struct desync_params));
|
¶ms.dp_count, sizeof(struct desync_params));
|
||||||
if (!dp) {
|
if (!dp) {
|
||||||
|
Loading…
Reference in New Issue
Block a user