{"id":2280,"date":"2025-01-09T01:32:05","date_gmt":"2025-01-08T16:32:05","guid":{"rendered":"https:\/\/remoooo.com\/?p=2280"},"modified":"2025-01-09T01:32:06","modified_gmt":"2025-01-08T16:32:06","slug":"wsl-%e6%a3%80%e6%b5%8b%e5%88%b0-localhost-%e4%bb%a3%e7%90%86%e9%85%8d%e7%bd%ae%ef%bc%8c%e4%bd%86%e6%9c%aa%e9%95%9c%e5%83%8f%e5%88%b0-wsl%e3%80%82nat-%e6%a8%a1%e5%bc%8f%e4%b8%8b%e7%9a%84-wsl-%e4%b8%8d","status":"publish","type":"post","link":"https:\/\/remoooo.com\/en\/wsl-%e6%a3%80%e6%b5%8b%e5%88%b0-localhost-%e4%bb%a3%e7%90%86%e9%85%8d%e7%bd%ae%ef%bc%8c%e4%bd%86%e6%9c%aa%e9%95%9c%e5%83%8f%e5%88%b0-wsl%e3%80%82nat-%e6%a8%a1%e5%bc%8f%e4%b8%8b%e7%9a%84-wsl-%e4%b8%8d\/","title":{"rendered":"wsl: localhost proxy configuration detected but not mirrored to WSL. WSL in NAT mode does not support localhost proxy."},"content":{"rendered":"<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>link to: <a href=\"https:\/\/github.com\/microsoft\/WSL\/releases\/tag\/2.0.0\">https:\/\/github.com\/microsoft\/WSL\/releases\/tag\/2.0.0<\/a><\/p>\n<\/blockquote>\n\n\n\n<p>Windows 11 24H2<br><br>1. Open or create the wsl configuration file (located at\u00a0<code>%USERPROFILE%\\.wslconfig<\/code> ), and enter the following content:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro padding-bottom-disabled\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:1rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-width:calc(1 * 0.6 * 1rem);line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewbox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#d4d4d433\" stroke=\"#d4d4d44d\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#d4d4d433\" stroke=\"#d4d4d44d\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#d4d4d433\" stroke=\"#d4d4d44d\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"[experimental]autoMemoryReclaim=gradual | dropcache | disablednetworkingMode=mirroreddnsTunneling=truefirewall=trueautoProxy=true\" style=\"color:#D4D4D4;display:none\" aria-label=\"copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewbox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">[experimental]<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">autoMemoryReclaim<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #CE9178\">teacher<\/span><span style=\"color: #D4D4D4\"> | <\/span><span style=\"color: #DCDCAA\">dropcache<\/span><span style=\"color: #D4D4D4\"> | <\/span><span style=\"color: #DCDCAA\">disabled<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">networkingMode<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #CE9178\">mirrored<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">dnsTunneling<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #569CD6\">true<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">firewall<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #569CD6\">true<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">autoProxy<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #569CD6\">true<\/span><\/span><\/code><\/pre><span style=\"display:flex;align-items:flex-end;padding:10px;width:100%;justify-content:flex-end;background-color:#1E1E1E;color:#c7c7c7;font-size:12px;line-height:1;position:relative\">Bash<\/span><\/div>\n\n\n\n<p>2. Open the command prompt and execute\u00a0<code>wsl --shutdown<\/code><\/p>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>link to: https:\/\/github.com\/microsoft\/WSL\/releases\/tag\/ [&hellip;]<\/p>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2280","post","type-post","status-publish","format-standard","hentry","category-article"],"_links":{"self":[{"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/posts\/2280","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/comments?post=2280"}],"version-history":[{"count":1,"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/posts\/2280\/revisions"}],"predecessor-version":[{"id":2281,"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/posts\/2280\/revisions\/2281"}],"wp:attachment":[{"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/media?parent=2280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/categories?post=2280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/tags?post=2280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}