fix: pass off env vars to android apps (#3621)

* fix: pass off env vars to android apps

* move to jni_onload

* fix clippy
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2025-01-21 18:52:56 -08:00
1 parent ce2b223af9
commit 03c2d6711d
7 files changed
+65 -10

No files matched your search

+3
View File
@@ -355,6 +355,9 @@ impl WebServer {
pub fn displayed_address(&self) -> Option<SocketAddr> {
let mut address = self.server_address()?;
// Set the port to the devserver port since that's usually what people expect
address.set_port(self.devserver_port);
if self.devserver_bind_ip == IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)) {
address = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)), address.port());
}