feat: Use loopback interface on desktop dev server by default (#10360)

Use loopback interface on desktop dev server by default
This commit is contained in:
chip 2024-07-30 14:17:19 +09:00 committed by GitHub
parent a0af6c00df
commit 11af545bf3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -208,9 +208,9 @@ pub fn setup(
before_dev = before_dev.replace(
"$HOST",
if let Some(url) = &dev_url {
url.host_str().unwrap_or("0.0.0.0")
url.host_str().unwrap_or("127.0.0.1")
} else {
"0.0.0.0"
"127.0.0.1"
},
);
}