Skip to content

Commit

Permalink
Update iptablespush.c
Browse files Browse the repository at this point in the history
  • Loading branch information
limithit authored Apr 11, 2019
1 parent 44ff933 commit 7fb318f
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions iptablespush.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,7 @@ int DROP_Insert_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int
#endif
printf("%s || %s\n", RedisModule_StringPtrLen(argv[0], NULL),
RedisModule_StringPtrLen(argv[1], NULL));
#ifdef WITH_IPSET
fd = execute_popen(&pid, insert_command);
redis_waitpid(pid);
close(fd);
#elif BSD
#if defined (WITH_IPSET) || defined (BSD)
fd = execute_popen(&pid, insert_command);
redis_waitpid(pid);
close(fd);
Expand Down Expand Up @@ -171,11 +167,7 @@ int ACCEPT_Insert_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, in
#endif
printf("%s || %s\n", RedisModule_StringPtrLen(argv[0], NULL),
RedisModule_StringPtrLen(argv[1], NULL));
#ifdef WITH_IPSET
fd = execute_popen(&pid, insert_command);
redis_waitpid(pid);
close(fd);
#elif BSD
#if defined (WITH_IPSET) || defined (BSD)
fd = execute_popen(&pid, insert_command);
redis_waitpid(pid);
close(fd);
Expand Down Expand Up @@ -259,11 +251,7 @@ int TTL_DROP_Insert_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv,
#endif
printf("%s || %s\n", RedisModule_StringPtrLen(argv[0], NULL),
RedisModule_StringPtrLen(argv[1], NULL));
#ifdef WITH_IPSET
fd = execute_popen(&pid, insert_command);
redis_waitpid(pid);
close(fd);
#elif BSD
#if defined (WITH_IPSET) || defined (BSD)
fd = execute_popen(&pid, insert_command);
redis_waitpid(pid);
close(fd);
Expand Down

0 comments on commit 7fb318f

Please sign in to comment.