aboutsummaryrefslogtreecommitdiff
path: root/core/src/client
diff options
context:
space:
mode:
authorWeicao-CatilGrass <1992414357@qq.com>2025-04-22 02:05:44 +0800
committerWeicao-CatilGrass <1992414357@qq.com>2025-04-22 02:05:44 +0800
commitd45af68b68b77155aa539bd514e418ed127a9578 (patch)
treed45c570a63aac8bb7b730a9ac9163d3cf7c761bd /core/src/client
parent07de6f4ca07740d4d836b4d2ccb3da5ea58734c3 (diff)
默认端口号常量命名变更
Diffstat (limited to 'core/src/client')
-rw-r--r--core/src/client/client.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/client/client.rs b/core/src/client/client.rs
index c11bb61..e861168 100644
--- a/core/src/client/client.rs
+++ b/core/src/client/client.rs
@@ -1,4 +1,4 @@
-use crate::constants::DEFAULT_PORT;
+use crate::constants::DEFAULT_PORT_UDP;
use crate::player::player_info::PlayerInfo;
use std::net::SocketAddr;
@@ -14,7 +14,7 @@ impl Default for PadClient {
fn default() -> Self {
PadClient {
player_info: PlayerInfo::default(),
- remote_addr: SocketAddr::from(([127, 0, 0, 1], DEFAULT_PORT)),
+ remote_addr: SocketAddr::from(([127, 0, 0, 1], DEFAULT_PORT_UDP)),
receive_skin_package: true
}
}