cmdline's tcp name is changed to quic

This commit is contained in:
alex 2026-03-10 15:39:42 +08:00
parent 50db315c79
commit a52df35198
3 changed files with 4 additions and 4 deletions

View File

@ -152,7 +152,7 @@ async fn daemonize_me(
mac,
CommandLine {
sn: server.clone()+":1365",
tcp: server.clone()+":443",
quic: server.clone()+":443",
nat_server1: server.clone() +":1365",
// nat_server2: "47.98.178.3:1265".to_owned(),
nat_server2: server.clone() +":1366",

View File

@ -41,7 +41,7 @@ pub async fn async_main(
init_quic_conn(
cancel_tcp,
&args.tcp,
&args.quic,
// |msg| handle_tcp_message(msg),
edge.tcp_pong.clone(),
// tcp_pong,

View File

@ -69,7 +69,7 @@ pub struct CommandLine {
pub sn: String,
#[structopt(short = "t", long = "tcp", default_value = "127.0.0.1:7656")]
pub tcp: String,
pub quic: String,
/// in the format of "localhost:1234"
#[structopt(long = "nat1")]
@ -118,7 +118,7 @@ impl Clone for CommandLine {
fn clone(&self) -> Self {
Self {
sn: self.sn.clone(),
tcp: self.tcp.clone(),
quic: self.quic.clone(),
_allow_routing: self._allow_routing,
_drop_multicast: self._drop_multicast,
register_ttl: self.register_ttl,