Skip to content

Commit 16edcb7

Browse files
committed
更新DevContainer设置,将Proxy设置为:http://host.docker.internal:7890
1 parent 910dbcc commit 16edcb7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.devcontainer/devcontainer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
}
1717
},
1818
"containerEnv": {
19-
"HTTP_PROXY": "${localEnv:HTTP_PROXY}",
20-
"HTTPS_PROXY": "${localEnv:HTTP_PROXY}",
21-
"http_proxy": "${localEnv:HTTP_PROXY}",
22-
"https_proxy": "${localEnv:HTTP_PROXY}"
19+
"HTTP_PROXY": "http://host.docker.internal:7890",
20+
"HTTPS_PROXY": "http://host.docker.internal:7890",
21+
"http_proxy": "http://host.docker.internal:7890",
22+
"https_proxy": "http://host.docker.internal:7890"
2323
},
2424

2525
// Features to add to the dev container. More info: https://containers.dev/features.

0 commit comments

Comments
 (0)