Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 17, 2021. It is now read-only.
/sshcodePublic archive

Commit2f52cef

Browse files
authored
Merge branch 'master' into proxy-support
2 parents5ea05eb +8c07a08 commit2f52cef

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

‎README.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ We currently support:
3636
- MacOS
3737
- WSL
3838

39+
For the remote server, we currently only support Linux`x86_64` (64-bit)
40+
servers with`glibc`.`musl` libc (which is most notably used by Alpine Linux)
41+
is currently not supported on the remote server:
42+
[#122](https://github.com/cdr/sshcode/issues/122).
43+
3944
##Usage
4045

4146
```bash

‎main.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func (c *rootCmd) RegisterFlags(fl *flag.FlagSet) {
5353
fl.BoolVar(&c.skipSync,"skipsync",false,"skip syncing local settings and extensions to remote host")
5454
fl.BoolVar(&c.syncBack,"b",false,"sync extensions back on termination")
5555
fl.BoolVar(&c.printVersion,"version",false,"print version information and exit")
56-
fl.StringVar(&c.bindAddr,"bind","","local bind address forssh tunnel")
56+
fl.StringVar(&c.bindAddr,"bind","","local bind address forSSH tunnel, in [HOST][:PORT] syntax (default: 127.0.0.1)")
5757
fl.StringVar(&c.sshFlags,"ssh-flags","","custom SSH flags")
5858
}
5959

‎sshcode.go‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ func sshCode(host, dir string, o options) error {
168168
}
169169

170170
funcparseBindAddr(bindAddrstring) (string,error) {
171-
ifbindAddr=="" {
172-
bindAddr=":"
171+
if!strings.Contains(bindAddr,":") {
172+
bindAddr+=":"
173173
}
174174

175175
host,port,err:=net.SplitHostPort(bindAddr)
@@ -345,6 +345,7 @@ func downloadScript(codeServerPath string) string {
345345
returnfmt.Sprintf(
346346
`set -euxo pipefail || exit 1
347347
348+
[ "$(uname -m)" != "x86_64" ] && echo "Unsupported server architecture $(uname -m). code-server only has releases for x86_64 systems." && exit 1
348349
pkill -f %v || true
349350
mkdir -p ~/.local/share/code-server %v
350351
cd %v

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp