fix(desktop): respect proxy environment (#25846)
This commit is contained in:
parent
bb9b81aa37
commit
465c83cf82
2 changed files with 17 additions and 2 deletions
|
|
@ -30,8 +30,9 @@ export function setWslConfig(config: WslConfig) {
|
|||
getStore().set(WSL_ENABLED_KEY, config.enabled)
|
||||
}
|
||||
|
||||
export async function spawnLocalServer(hostname: string, port: number, password: string) {
|
||||
export async function spawnLocalServer(hostname: string, port: number, password: string, configureEnv?: () => void) {
|
||||
prepareServerEnv(password)
|
||||
configureEnv?.()
|
||||
const { Log, Server } = await import("virtual:opencode-server")
|
||||
await Log.init({ level: "WARN" })
|
||||
const listener = await Server.listen({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue