summaryrefslogtreecommitdiffstats
path: root/src/squark-auth-ip.c
diff options
context:
space:
mode:
authorAlex Dowad <alexinbeijing@gmail.com>2014-04-16 21:59:58 +0200
committerTimo Teräs <timo.teras@iki.fi>2014-04-25 10:20:51 +0300
commit4f30890daa5f982a43bbe41e89129e27578cae81 (patch)
treee90d9fe8d682e3bd9c6d137db1f99190a460fa6f /src/squark-auth-ip.c
parente3c03dedff0342a6982de37c491b2c2c724988ae (diff)
downloadsquark-4f30890daa5f982a43bbe41e89129e27578cae81.tar.bz2
squark-4f30890daa5f982a43bbe41e89129e27578cae81.tar.xz
squark-filter, squark-auth-ip: config file path can be set using -c option
Diffstat (limited to 'src/squark-auth-ip.c')
-rw-r--r--src/squark-auth-ip.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/squark-auth-ip.c b/src/squark-auth-ip.c
index 20c7d35..22e8fc0 100644
--- a/src/squark-auth-ip.c
+++ b/src/squark-auth-ip.c
@@ -126,11 +126,14 @@ int main(int argc, char **argv)
reporting_init("squark-auth-ip");
- while ((opt = getopt(argc, argv, "Vi:u:olpLrsqv::")) != -1) {
+ while ((opt = getopt(argc, argv, "Vc:i:u:olpLrsqv::")) != -1) {
switch (opt) {
case 'V':
fprintf(stderr, "squark-auth-ip %s\n", squark_version);
return 0;
+ case 'c':
+ squark_config = optarg;
+ break;
case 'i':
ip = BLOB_STRLEN(optarg);
if (!addr_parse(ip, &ipaddr)) {