mirror of
https://github.com/status-im/miniupnp.git
synced 2025-02-12 05:56:53 +00:00
remove call to addpeernatrule() ...
This commit is contained in:
parent
9059966122
commit
141e861c3a
@ -44,10 +44,13 @@ main(int argc, char ** argv)
|
|||||||
syslog(LOG_DEBUG, "addmasqueraderule() returned %d", r);
|
syslog(LOG_DEBUG, "addmasqueraderule() returned %d", r);
|
||||||
if(add_filter_rule(proto, NULL, iaddr, iport) < 0)
|
if(add_filter_rule(proto, NULL, iaddr, iport) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
#if 0
|
||||||
|
/* TEST */
|
||||||
if(proto == IPPROTO_UDP) {
|
if(proto == IPPROTO_UDP) {
|
||||||
if(addpeernatrule(proto, "8.8.8.8"/*eaddr*/, eport, iaddr, iport, NULL, 0) < 0)
|
if(addpeernatrule(proto, "8.8.8.8"/*eaddr*/, eport, iaddr, iport, NULL, 0) < 0)
|
||||||
fprintf(stderr, "addpeenatrule failed\n");
|
fprintf(stderr, "addpeenatrule failed\n");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
/* test */
|
/* test */
|
||||||
{
|
{
|
||||||
unsigned short p1, p2;
|
unsigned short p1, p2;
|
||||||
@ -76,8 +79,8 @@ main(int argc, char ** argv)
|
|||||||
}
|
}
|
||||||
printf("trying to list nat rules :\n");
|
printf("trying to list nat rules :\n");
|
||||||
list_redirect_rule(argv[1]);
|
list_redirect_rule(argv[1]);
|
||||||
//printf("deleting\n");
|
printf("deleting\n");
|
||||||
//delete_redirect_and_filter_rules(eport, proto);
|
delete_redirect_and_filter_rules(eport, proto);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user