Skip to content

Commit 3752f7d

Browse files
authored
Merge pull request #9899 from gitbutlerapp/fix-default-host
Use 127.0.0.1 as default host
2 parents d9a9836 + 794deda commit 3752f7d

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)