mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-12 14:00:01 -04:00
default to wisp v1
This commit is contained in:
parent
d6353bd5a9
commit
2872e02a2c
2 changed files with 6 additions and 6 deletions
|
@ -173,8 +173,8 @@ impl EpoxyClientOptions {
|
|||
impl Default for EpoxyClientOptions {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
wisp_v2: true,
|
||||
udp_extension_required: true,
|
||||
wisp_v2: false,
|
||||
udp_extension_required: false,
|
||||
websocket_protocols: Vec::new(),
|
||||
redirect_limit: 10,
|
||||
user_agent: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36".to_string(),
|
||||
|
|
|
@ -92,9 +92,9 @@ struct Cli {
|
|||
/// Usernames and passwords are sent in plaintext!!
|
||||
#[arg(long)]
|
||||
auth: Option<String>,
|
||||
/// Make a Wisp V1 connection
|
||||
/// Make a Wisp V2 connection
|
||||
#[arg(long)]
|
||||
wisp_v1: bool,
|
||||
wisp_v2: bool,
|
||||
}
|
||||
|
||||
#[tokio::main(flavor = "multi_thread")]
|
||||
|
@ -166,7 +166,7 @@ async fn main() -> Result<(), Box<dyn Error + Send + Sync>> {
|
|||
extension_ids.push(PasswordProtocolExtension::ID);
|
||||
}
|
||||
|
||||
let (mux, fut) = if opts.wisp_v1 {
|
||||
let (mux, fut) = if !opts.wisp_v2 {
|
||||
ClientMux::create(rx, tx, None)
|
||||
.await?
|
||||
.with_no_required_extensions()
|
||||
|
@ -178,7 +178,7 @@ async fn main() -> Result<(), Box<dyn Error + Send + Sync>> {
|
|||
};
|
||||
|
||||
println!(
|
||||
"connected and created ClientMux, was downgraded {}, extensions supported {:?}",
|
||||
"connected and created ClientMux, was downgraded {}, extensions supported {:?}\n",
|
||||
mux.downgraded, mux.supported_extension_ids
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue