cmdline's tcp name is changed to quic
This commit is contained in:
parent
50db315c79
commit
a52df35198
@ -152,7 +152,7 @@ async fn daemonize_me(
|
|||||||
mac,
|
mac,
|
||||||
CommandLine {
|
CommandLine {
|
||||||
sn: server.clone()+":1365",
|
sn: server.clone()+":1365",
|
||||||
tcp: server.clone()+":443",
|
quic: server.clone()+":443",
|
||||||
nat_server1: server.clone() +":1365",
|
nat_server1: server.clone() +":1365",
|
||||||
// nat_server2: "47.98.178.3:1265".to_owned(),
|
// nat_server2: "47.98.178.3:1265".to_owned(),
|
||||||
nat_server2: server.clone() +":1366",
|
nat_server2: server.clone() +":1366",
|
||||||
|
|||||||
@ -41,7 +41,7 @@ pub async fn async_main(
|
|||||||
|
|
||||||
init_quic_conn(
|
init_quic_conn(
|
||||||
cancel_tcp,
|
cancel_tcp,
|
||||||
&args.tcp,
|
&args.quic,
|
||||||
// |msg| handle_tcp_message(msg),
|
// |msg| handle_tcp_message(msg),
|
||||||
edge.tcp_pong.clone(),
|
edge.tcp_pong.clone(),
|
||||||
// tcp_pong,
|
// tcp_pong,
|
||||||
|
|||||||
@ -69,7 +69,7 @@ pub struct CommandLine {
|
|||||||
pub sn: String,
|
pub sn: String,
|
||||||
|
|
||||||
#[structopt(short = "t", long = "tcp", default_value = "127.0.0.1:7656")]
|
#[structopt(short = "t", long = "tcp", default_value = "127.0.0.1:7656")]
|
||||||
pub tcp: String,
|
pub quic: String,
|
||||||
|
|
||||||
/// in the format of "localhost:1234"
|
/// in the format of "localhost:1234"
|
||||||
#[structopt(long = "nat1")]
|
#[structopt(long = "nat1")]
|
||||||
@ -118,7 +118,7 @@ impl Clone for CommandLine {
|
|||||||
fn clone(&self) -> Self {
|
fn clone(&self) -> Self {
|
||||||
Self {
|
Self {
|
||||||
sn: self.sn.clone(),
|
sn: self.sn.clone(),
|
||||||
tcp: self.tcp.clone(),
|
quic: self.quic.clone(),
|
||||||
_allow_routing: self._allow_routing,
|
_allow_routing: self._allow_routing,
|
||||||
_drop_multicast: self._drop_multicast,
|
_drop_multicast: self._drop_multicast,
|
||||||
register_ttl: self.register_ttl,
|
register_ttl: self.register_ttl,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user