mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-19 14:40:57 +00:00
force ipv4?
This commit is contained in:
@@ -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