use 80/443 as ws/wss default port (#1700)

This commit is contained in:
狂男风
2026-01-01 01:31:38 +08:00
committed by GitHub
parent 4e651a72f7
commit 88a45d1156
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -74,6 +74,7 @@ pub async fn socket_addrs(
.or_else(default_port_number)
.ok_or(Error::InvalidUrl(url.to_string()))?;
// See https://github.com/EasyTier/EasyTier/pull/947
// here is for compatibility with old version
let port = match port {
0 => match url.scheme() {
"ws" => 80,