diff options
author | June McEnroe <june@causal.agency> | 2020-01-12 18:37:32 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-01-12 18:40:28 -0500 |
commit | d24f385f9979c6c8a2e7bc0bc5f0b8bf5b659433 (patch) | |
tree | 2aa3cbc9d05a46d8bbc2a5fa9f0a7724a81e3cb5 /bounce.c | |
parent | Use the CAP_PREAD right (diff) | |
download | pounce-d24f385f9979c6c8a2e7bc0bc5f0b8bf5b659433.tar.gz pounce-d24f385f9979c6c8a2e7bc0bc5f0b8bf5b659433.zip |
Rename all local-related options to local-
This disambiguates client-ca and client-pass from client-cert and client-key, which apply to opposite sides of the program. The old option names will continue to work.
Diffstat (limited to '')
-rw-r--r-- | bounce.c | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/bounce.c b/bounce.c index ac30cd9..ebd39ba 100644 --- a/bounce.c +++ b/bounce.c @@ -236,14 +236,14 @@ int main(int argc, char *argv[]) { const char *Opts = "!A:C:H:K:NP:U:W:a:c:ef:g:h:j:k:n:p:q:r:s:u:vw:xy:"; const struct option LongOpts[] = { { "insecure", no_argument, NULL, '!' }, - { "client-ca", required_argument, NULL, 'A' }, - { "cert", required_argument, NULL, 'C' }, - { "bind-host", required_argument, NULL, 'H' }, - { "priv", required_argument, NULL, 'K' }, + { "local-ca", required_argument, NULL, 'A' }, + { "local-cert", required_argument, NULL, 'C' }, + { "local-host", required_argument, NULL, 'H' }, + { "local-priv", required_argument, NULL, 'K' }, { "no-names", no_argument, NULL, 'N' }, - { "bind-port", required_argument, NULL, 'P' }, - { "bind-path", required_argument, NULL, 'U' }, - { "client-pass", required_argument, NULL, 'W' }, + { "local-port", required_argument, NULL, 'P' }, + { "local-path", required_argument, NULL, 'U' }, + { "local-pass", required_argument, NULL, 'W' }, { "sasl-plain", required_argument, NULL, 'a' }, { "client-cert", required_argument, NULL, 'c' }, { "sasl-external", no_argument, NULL, 'e' }, @@ -260,6 +260,16 @@ int main(int argc, char *argv[]) { { "verbose", no_argument, NULL, 'v' }, { "pass", required_argument, NULL, 'w' }, { "away", required_argument, NULL, 'y' }, + + // Deprecated: + { "client-ca", required_argument, NULL, 'A' }, + { "cert", required_argument, NULL, 'C' }, + { "bind-host", required_argument, NULL, 'H' }, + { "priv", required_argument, NULL, 'K' }, + { "bind-port", required_argument, NULL, 'P' }, + { "bind-path", required_argument, NULL, 'U' }, + { "client-pass", required_argument, NULL, 'W' }, + {0}, }; |