mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-25 03:33:36 +03:00
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:
parent
a0af6c00df
commit
11af545bf3
@ -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"
|
||||
},
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user