1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/crabfit_ynh.git synced 2024-09-03 18:16:21 +02:00

Update the backend patch to listen only on the loopback

This commit is contained in:
Antoine Lima 2024-03-10 00:14:21 +01:00
parent e894a8bbd8
commit 9d21a77db2
No known key found for this signature in database
GPG key ID: 5D1E65E3DEB73410

View file

@ -17,7 +17,7 @@ index da3e2c3..3ebd00e 100644
.layer(TraceLayer::new_for_http()); .layer(TraceLayer::new_for_http());
- let addr = SocketAddr::from(([0, 0, 0, 0], 3000)); - let addr = SocketAddr::from(([0, 0, 0, 0], 3000));
+ let addr = SocketAddr::from(([0, 0, 0, 0], port)); + let addr = SocketAddr::from(([127, 0, 0, 1], port));
println!( println!(
"🦀 Crab Fit API listening at http://{} in {} mode", "🦀 Crab Fit API listening at http://{} in {} mode",