Update usage and README.md.
This commit is contained in:
parent
5c34ce4beb
commit
146071161f
|
@ -60,9 +60,9 @@ Usage
|
||||||
|
|
||||||
* run the python proxy:
|
* run the python proxy:
|
||||||
|
|
||||||
`./utils/wsproxy.py source_port target_addr:target_port
|
`./utils/wsproxy.py -f source_port target_addr:target_port
|
||||||
|
|
||||||
`./utils/wsproxy.py 8787 localhost:5901`
|
`./utils/wsproxy.py -f 8787 localhost:5901`
|
||||||
|
|
||||||
|
|
||||||
* run the mini python web server to serve the directory:
|
* run the mini python web server to serve the directory:
|
||||||
|
|
|
@ -29,8 +29,12 @@ Traffic Legend:\n\
|
||||||
<. - Client send partial\n\
|
<. - Client send partial\n\
|
||||||
";
|
";
|
||||||
|
|
||||||
char USAGE[] = "Usage: [--record FILE] [--ssl-only] " \
|
char USAGE[] = "Usage: [options] " \
|
||||||
"[source_addr:]source_port target_addr:target_port";
|
"[source_addr:]source_port target_addr:target_port\n\n" \
|
||||||
|
" --record REC record traffic to REC\n" \
|
||||||
|
" --cert CERT load CERT as SSL certificate\n" \
|
||||||
|
" --foreground|-f run in the foreground\n" \
|
||||||
|
" --ssl-only disallow non-SSL connections";
|
||||||
|
|
||||||
#define usage(fmt, args...) \
|
#define usage(fmt, args...) \
|
||||||
fprintf(stderr, "%s\n\n", USAGE); \
|
fprintf(stderr, "%s\n\n", USAGE); \
|
||||||
|
@ -284,7 +288,7 @@ int main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
usage("Invalid option %c\n", c);
|
usage("");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
settings.ssl_only = ssl_only;
|
settings.ssl_only = ssl_only;
|
||||||
|
|
Loading…
Reference in New Issue