diff --git a/contrib/proxy/.gitignore b/contrib/proxy/.gitignore new file mode 100644 index 00000000..828fea7e --- /dev/null +++ b/contrib/proxy/.gitignore @@ -0,0 +1,3 @@ +gen +proxy.py +*.http diff --git a/contrib/proxy/gen.c b/contrib/proxy/gen.c index 1190079b..59d1b2b1 100644 --- a/contrib/proxy/gen.c +++ b/contrib/proxy/gen.c @@ -121,10 +121,10 @@ dicts(FILE *f) fprintf(f, "slownik = {\n"); for (i = 0; i < counter - 1; i++) { - fprintf(f, "\t'http://%s%s' : '%d.txt',\n", tab[i].host, tab[i].string, i); + fprintf(f, "\t'http://%s%s' : '%d.http',\n", tab[i].host, tab[i].string, i); } for (; i < counter; i++) { - fprintf(f, "\t'http://%s%s' : '%d.txt'\n", tab[i].host, tab[i].string, i); + fprintf(f, "\t'http://%s%s' : '%d.http'\n", tab[i].host, tab[i].string, i); } fprintf(f, "}\n\n"); } @@ -138,7 +138,7 @@ save(void) for (i = 0; i < counter; i++) { char buf[12]; - snprintf(buf, 12, "%d.txt", i); + snprintf(buf, 12, "%d.http", i); f = fopen(buf, "w"); if (!f) return;