Local via WSL2 GUI Is Much Faster Than Windows 10 Native

According to Accessing network applications with WSL | Microsoft Learn

Accessing localhost from a Windows app will show you something running there in WSL. This explains why the router mode works fine.

Per my investigations… the /etc/hosts file is auto-generated from Windows’ hosts file. I thought this would mean I could manually enter the domains in the windows hosts file. and they do get ported into /etc/hosts on reload of WSL. You can also change things so that etc/hosts is not autogenerated, and I tried manually editing the /etc/hosts. Either way I can see that

::1 test.local
127.0.0.1 test.local
::1 www.test.local
127.0.0.1 www.test.local

is definitely ending up in the /etc/hosts

But Local in WSL doesn’t seem to recognize it is there and still thinks it needs to update the hosts file… which is can’t seem to do. So it generates the following error:

2/4/2022, 9:09:54 AM [error] [main] SiteProcessManagerService: Unable to start site. – {“stack”:{}}

(localwp:234): libnotify-WARNING **: 09:09:57.605: Failed to connect to proxy

(localwp:234): libnotify-WARNING **: 09:09:57.607: Failed to connect to proxy

(localwp:234): libnotify-WARNING **: 09:09:57.607: Failed to connect to proxy
2/4/2022, 9:09:57 AM [info] [main] HostsFileService: Updating hosts with
2/4/2022, 9:09:57 AM [warn] [main] Process: 2022-02-04T16:09:54.611879Z 0 [System] [MY-010116] [Server] %%resourcesPath%%/lightning-services/mysql-8.0.16+6/bin/linux/bin/mysqld (mysqld 8.0.16) starting as process 349 – {“process”:“mysql”}
2/4/2022, 9:09:57 AM [warn] [main] Process: 2022-02-04T16:09:54.628190Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead. – {“process”:“mysql”}
2/4/2022, 9:09:57 AM [warn] [main] Process: 2022-02-04T16:09:56.933378Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed. – {“process”:“mysql”}
2/4/2022, 9:09:57 AM [warn] [main] Process: 2022-02-04T16:09:56.996275Z 0 [System] [MY-010931] [Server] %%resourcesPath%%/lightning-services/mysql-8.0.16+6/bin/linux/bin/mysqld: ready for connections. Version: ‘8.0.16’ socket: ‘%%site.runData%%/mysql/mysqld.sock’ port: 10003 MySQL Community Server - GPL. – {“process”:“mysql”}
2/4/2022, 9:09:57 AM [error] [main] HostsFileService: Could not update hosts. – {“error”:{“killed”:false,“code”:127,“signal”:null,“cmd”:“cd "/mnt/c/Users/helga/Sites/woo.dev.cc/wp-content/woocommerce/plugins/woocommerce"; export ELECTRON_RUN_AS_NODE="1"; "/usr/bin/pkexec" --disable-internal-agent /bin/bash -c "echo SUDOPROMPT; export ELECTRON_RUN_AS_NODE=\"1\";/opt/Local/local %%appPath%%/main/dns/workers/updateHostsFileWorker.js testlocal.local www.testlocal.local"”},“stdout”:“”,“stderr”:“Error getting authority: Error initializing authority: Could not connect: No such file or directory\n”,“exitCode”:127}

Is there any workaround to tell Local that the hosts entry is not missing?