You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HOST="hostname -i" && ~root/.code-server/code-server -h $HOST -o
(node:7041) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
INFO code-server v1.1156-vsc1.33.1
INFO Additional documentation: http://github.com/cdr/code-server
INFO Initializing {"data-dir":"/root/.local/share/code-server","extensions-dir":"/root/.local/share/code-server/extensions","working-dir":"/root/.code-server","log-dir":"/root/.cache/code-server/logs/20190703161159810"}
INFO Starting webserver... {"host":"100.115.92.203","port":8443}
WARN No certificate specified. This could be insecure.
WARN Documentation on securing your setup: https://github.com/cdr/code-server/blob/master/doc/security/ssl.md
INFO
INFO Password: dc507d3941a7e1626d445d7d
INFO
INFO Started (click the link below to open):
INFO https://localhost:8443/
INFO
WARN Url couldn't be opened automatically. {"url":"https://localhost:8443/","exception":{"errno":"ENOENT","code":"ENOENT","syscall":"spawn /src/packages/server/out/xdg-open","path":"/src/packages/server/out/xdg-open","spawnargs":["https://localhost:8443/"]}}
INFO Starting shared process [1/5]...
WARN stderr {"data":"(node:7054) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.\n"}
INFO Connected to shared process
packages/server/src/cli.ts is where localhost is hardcoded. code-server should actually be listening on whatever you told it to listen on, and you can verify that with netstat -tulnp.
Since the last release we've changed how the URL is printed (to account for another bug), but localhost is still hardcoded. I made a PR a few days ago (#819) which changes the URL generating code to include the provided host.
code-server
version:v1.1156-vsc1.33.1
OS Version:
Ubuntu 18.04 in an lxc container
Description
When I specify the hostname IP address on the command line with
HOST="
hostname -i
" && ~root/.code-server/code-server -h $HOST -oThe code-server still shows the INFO as
INFO https://localhost:8443/
Log follows. ....
HOST="
hostname -i
" && ~root/.code-server/code-server -h $HOST -o(node:7041) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
INFO code-server v1.1156-vsc1.33.1
INFO Additional documentation: http://github.com/cdr/code-server
INFO Initializing {"data-dir":"/root/.local/share/code-server","extensions-dir":"/root/.local/share/code-server/extensions","working-dir":"/root/.code-server","log-dir":"/root/.cache/code-server/logs/20190703161159810"}
INFO Starting webserver... {"host":"100.115.92.203","port":8443}
WARN No certificate specified. This could be insecure.
WARN Documentation on securing your setup: https://github.com/cdr/code-server/blob/master/doc/security/ssl.md
INFO
INFO Password: dc507d3941a7e1626d445d7d
INFO
INFO Started (click the link below to open):
INFO https://localhost:8443/
INFO
WARN Url couldn't be opened automatically. {"url":"https://localhost:8443/","exception":{"errno":"ENOENT","code":"ENOENT","syscall":"spawn /src/packages/server/out/xdg-open","path":"/src/packages/server/out/xdg-open","spawnargs":["https://localhost:8443/"]}}
INFO Starting shared process [1/5]...
WARN stderr {"data":"(node:7054) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.\n"}
INFO Connected to shared process
Steps to Reproduce
hostname -i
" && ~root/.code-server/code-server -h $HOST -oThe text was updated successfully, but these errors were encountered: