Skip to content

Commit 63eed14

Browse files
committed
Fix cli help format on server, add wb for non-memfd platforms for python handler
1 parent 914d36e commit 63eed14

File tree

2 files changed

+2
-2
lines changed
  • cmd/server
  • internal/server/webserver/shellscripts/templates

2 files changed

+2
-2
lines changed

cmd/server/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func printHelp() {
2323
fmt.Println(" Authorisation")
2424
fmt.Println("\t--insecure\t\tIgnore authorized_controllee_keys file and allow any RSSH client to connect")
2525
fmt.Println(" Network")
26-
fmt.Println("\t--tls\t\tEnable TLS on socket (ssh/http over TLS)")
26+
fmt.Println("\t--tls\t\t\tEnable TLS on socket (ssh/http over TLS)")
2727
fmt.Println("\t--tlscert\t\tTLS certificate path")
2828
fmt.Println("\t--tlskey\t\tTLS key path")
2929
fmt.Println("\t--webserver\t\tEnable webserver on the listen_address port")

internal/server/webserver/shellscripts/templates/py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ syscalls = {"amd64": (319, 322, 1),
1919
}
2020

2121
if "{{.OS}}" == "windows" or "bsd" in "{{.OS}}" or "{{.Arch}}" not in syscalls:
22-
with open("{{.Name}}", 'w') as f:
22+
with open("{{.Name}}", 'wb') as f:
2323
f.write(bb)
2424
subprocess.call(['{{.Name}}'])
2525
exit(0)

0 commit comments

Comments
 (0)