aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2013-12-03 16:12:55 +0200
committerSergey Poznyakoff <gray@gnu.org>2013-12-03 16:12:55 +0200
commit361f1443224123a97af2d09f34fc2b913aee9edc (patch)
treec345e8a79fb587443b71b9ee95d181a10c48739e /src
parent5e501cf05fd1997018613304761d1104879353aa (diff)
downloadeclat-361f1443224123a97af2d09f34fc2b913aee9edc.tar.gz
eclat-361f1443224123a97af2d09f34fc2b913aee9edc.tar.bz2
Iprove sg
* src/sg.c (flush_rule): Add default source address, unless specified.
Diffstat (limited to 'src')
-rw-r--r--src/sg.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sg.c b/src/sg.c
index fc80e85..c3f5513 100644
--- a/src/sg.c
+++ b/src/sg.c
@@ -84,8 +84,12 @@ flush_rule()
eclat_query_add_param(query, bufptr, (char*) ep->data);
}
grecs_list_clear(source_list);
+ } else if (!group_list) {
+ grecs_asprintf(&bufptr, &bufsize,
+ "IpPermissions.%d.IpRanges.1.CidrIp",
+ rule_n);
+ eclat_query_add_param(query, bufptr, "0.0.0.0/0");
}
-
if (!from_port)
die(EX_USAGE, "rule %d: no ports", rule_n);

Return to:

Send suggestions and report system problems to the System administrator.