1
0

support multi-args command-line options

This commit is contained in:
EAimTY 2022-07-30 17:38:59 +09:00
parent 57c5b6b665
commit c95a94e3d5
2 changed files with 4 additions and 4 deletions

View File

@ -276,7 +276,7 @@ impl RawConfig {
"SERVER_IP",
);
opts.optopt(
opts.optmulti(
"",
"certificate",
"Set custom X.509 certificate alongside native CA roots for the QUIC handshake. This option can be used multiple times to set multiple certificates",
@ -304,7 +304,7 @@ impl RawConfig {
"HEARTBEAT_INTERVAL",
);
opts.optopt(
opts.optmulti(
"",
"alpn",
"Set ALPN protocols included in the TLS client hello. This option can be used multiple times to set multiple ALPN protocols. If not set, no ALPN extension will be sent",

View File

@ -163,7 +163,7 @@ impl RawConfig {
opts.optopt("", "port", "Set the server listening port", "SERVER_PORT");
opts.optopt(
opts.optmulti(
"",
"token",
"Set the token for TUIC authentication. This option can be used multiple times to set multiple tokens.",
@ -212,7 +212,7 @@ impl RawConfig {
"AUTHENTICATION_TIMEOUT",
);
opts.optopt(
opts.optmulti(
"",
"alpn",
"Set ALPN protocols that the server accepts. This option can be used multiple times to set multiple ALPN protocols. If not set, the server will not check ALPN at all",