mirror of
https://github.com/bytedance/g3.git
synced 2026-05-19 16:28:21 +00:00
g3proxy: fix error message
This commit is contained in:
parent
ae4db3593f
commit
fd83aad0e7
2 changed files with 4 additions and 4 deletions
|
|
@ -205,7 +205,7 @@ impl NativeTlsPort {
|
|||
let server = NativeTlsPort::new(config, listen_stats, 1)?;
|
||||
Ok(Arc::new(server))
|
||||
} else {
|
||||
Err(anyhow!("invalid config type for PlainTcpPort server"))
|
||||
Err(anyhow!("invalid config type for NativeTcpPort server"))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -259,7 +259,7 @@ impl ServerInternal for NativeTlsPort {
|
|||
self.config.store(config);
|
||||
Ok(())
|
||||
} else {
|
||||
Err(anyhow!("invalid config type for PlainTcpPort server"))
|
||||
Err(anyhow!("invalid config type for NativeTcpPort server"))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@ impl PlainQuicPort {
|
|||
let server = PlainQuicPort::new(config, listen_stats, 1)?;
|
||||
Ok(Arc::new(server))
|
||||
} else {
|
||||
Err(anyhow!("invalid config type for PlainTcpPort server"))
|
||||
Err(anyhow!("invalid config type for PlainQuicPort server"))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -243,7 +243,7 @@ impl ServerInternal for PlainQuicPort {
|
|||
self.config.store(config);
|
||||
Ok(())
|
||||
} else {
|
||||
Err(anyhow!("invalid config type for PlainTcpPort server"))
|
||||
Err(anyhow!("invalid config type for PlainQuicPort server"))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue