mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-25 11:43:06 +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(
|
before_dev = before_dev.replace(
|
||||||
"$HOST",
|
"$HOST",
|
||||||
if let Some(url) = &dev_url {
|
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 {
|
} else {
|
||||||
"0.0.0.0"
|
"127.0.0.1"
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user