mirror of
https://github.com/coder/code-server.git
synced 2026-05-05 12:05:18 +02:00
Proxy to 0.0.0.0 instead of localhost
This commit is contained in:
@@ -80,7 +80,7 @@ router.all("*", (req, res, next) => {
|
||||
|
||||
proxy.web(req, res, {
|
||||
ignorePath: true,
|
||||
target: `http://127.0.0.1:${port}${req.originalUrl}`,
|
||||
target: `http://0.0.0.0:${port}${req.originalUrl}`,
|
||||
})
|
||||
})
|
||||
|
||||
@@ -95,6 +95,6 @@ router.ws("*", (socket, head, req, next) => {
|
||||
|
||||
proxy.ws(req, socket, head, {
|
||||
ignorePath: true,
|
||||
target: `http://127.0.0.1:${port}${req.originalUrl}`,
|
||||
target: `http://0.0.0.0:${port}${req.originalUrl}`,
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user