Skip to content

Commit 794deda

Browse files
committed
Use 127.0.0.1 as default host
Change the default BUTLER_HOST value from 172.0.0.1 to 127.0.0.1 in crates/but-server/src/lib.rs. - Updated default host fallback in server initialization to use loopback address 127.0.0.1 instead of 172.0.0.1. - No other files modified. This is a focused fix to ensure the server binds to the standard localhost interface by default.
1 parent c91811b commit 794deda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/but-server/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ pub async fn run() {
9696
.layer(ServiceBuilder::new().layer(cors));
9797

9898
let port = std::env::var("BUTLER_PORT").unwrap_or("6978".into());
99-
let host = std::env::var("BUTLER_HOST").unwrap_or("172.0.0.1".into());
99+
let host = std::env::var("BUTLER_HOST").unwrap_or("127.0.0.1".into());
100100
let url = format!("{}:{}", host, port);
101101
let listener = tokio::net::TcpListener::bind(&url).await.unwrap();
102102
println!("Running at {}", url);

0 commit comments

Comments
 (0)