mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-10-26 05:50:14 +00:00
force ipv4?
This commit is contained in:
1 parent
8280b06253
commit
7598261aff
1 file changed
+3
-1
+3
-1
@@ -45,7 +45,9 @@ pub async fn backend_heartbeat(config: std::sync::Arc<crate::config::Config>) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async fn heartbeat_post(heartbeat_info: &HeartbeatInfo) {
|
async fn heartbeat_post(heartbeat_info: &HeartbeatInfo) {
|
||||||
match reqwest::Client::new()
|
match reqwest::Client::builder()
|
||||||
|
.local_address("0.0.0.0".parse::<std::net::IpAddr>().unwrap())
|
||||||
|
.build().unwrap()
|
||||||
.post("https://backend.beammp.com/heartbeat")
|
.post("https://backend.beammp.com/heartbeat")
|
||||||
.form(heartbeat_info)
|
.form(heartbeat_info)
|
||||||
.send()
|
.send()
|
||||||
|
|||||||
Reference in new issue
Block a user