| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,6 +36,11 @@ We currently support: | |||
| 36 | 36 | - MacOS | |
| 37 | 37 | - WSL | |
| 38 | 38 | ||
| 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 | + | ||
| 39 | 44 | ## Usage | |
| 40 | 45 | ||
| 41 | 46 | ```bash | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -55,7 +55,7 @@ func (c *rootCmd) RegisterFlags(fl *flag.FlagSet) { | |||
| 55 | 55 | fl.BoolVar(&c.syncBack, "b", false, "sync extensions back on termination") | |
| 56 | 56 | fl.BoolVar(&c.printVersion, "version", false, "print version information and exit") | |
| 57 | 57 | fl.BoolVar(&c.noReuseConnection, "no-reuse-connection", false, "do not reuse SSH connection via control socket") | |
| 58 | - fl.StringVar(&c.bindAddr, "bind", "", "local bind address for ssh tunnel") | ||
| 58 | + fl.StringVar(&c.bindAddr, "bind", "", "local bind address for SSH tunnel, in [HOST][:PORT] syntax (default: 127.0.0.1)") | ||
| 59 | 59 | fl.StringVar(&c.sshFlags, "ssh-flags", "", "custom SSH flags") | |
| 60 | 60 | } | |
| 61 | 61 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -210,8 +210,8 @@ func expandPath(path string) string { | |||
| 210 | 210 | } | |
| 211 | 211 | ||
| 212 | 212 | func parseBindAddr(bindAddr string) (string, error) { | |
| 213 | - if bindAddr == "" { | ||
| 214 | - bindAddr = ":" | ||
| 213 | + if !strings.Contains(bindAddr, ":") { | ||
| 214 | + bindAddr += ":" | ||
| 215 | 215 | } | |
| 216 | 216 | ||
| 217 | 217 | host, port, err := net.SplitHostPort(bindAddr) | |
@@ -481,6 +481,7 @@ func downloadScript(codeServerPath string) string { | |||
| 481 | 481 | return fmt.Sprintf( | |
| 482 | 482 | `set -euxo pipefail || exit 1 | |
| 483 | 483 | ||
| 484 | + [ "$(uname -m)" != "x86_64" ] && echo "Unsupported server architecture $(uname -m). code-server only has releases for x86_64 systems." && exit 1 | ||
| 484 | 485 | pkill -f %v || true | |
| 485 | 486 | mkdir -p ~/.local/share/code-server %v | |
| 486 | 487 | cd %v | |
| Back | FazBrowse Home | New Git URL |
0 commit comments