support multi-args command-line options
This commit is contained in:
parent
57c5b6b665
commit
c95a94e3d5
@ -276,7 +276,7 @@ impl RawConfig {
|
|||||||
"SERVER_IP",
|
"SERVER_IP",
|
||||||
);
|
);
|
||||||
|
|
||||||
opts.optopt(
|
opts.optmulti(
|
||||||
"",
|
"",
|
||||||
"certificate",
|
"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",
|
"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",
|
"HEARTBEAT_INTERVAL",
|
||||||
);
|
);
|
||||||
|
|
||||||
opts.optopt(
|
opts.optmulti(
|
||||||
"",
|
"",
|
||||||
"alpn",
|
"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",
|
"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",
|
||||||
|
@ -163,7 +163,7 @@ impl RawConfig {
|
|||||||
|
|
||||||
opts.optopt("", "port", "Set the server listening port", "SERVER_PORT");
|
opts.optopt("", "port", "Set the server listening port", "SERVER_PORT");
|
||||||
|
|
||||||
opts.optopt(
|
opts.optmulti(
|
||||||
"",
|
"",
|
||||||
"token",
|
"token",
|
||||||
"Set the token for TUIC authentication. This option can be used multiple times to set multiple tokens.",
|
"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",
|
"AUTHENTICATION_TIMEOUT",
|
||||||
);
|
);
|
||||||
|
|
||||||
opts.optopt(
|
opts.optmulti(
|
||||||
"",
|
"",
|
||||||
"alpn",
|
"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",
|
"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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user