We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe2ac76 commit 0097e94Copy full SHA for 0097e94
execd.go
@@ -22,6 +22,7 @@ import (
22
"github.com/flynn/go-shlex"
23
)
24
25
+var host = flag.String("h", "", "host ip to listen on")
26
var port = flag.String("p", "22", "port to listen on")
27
var debug = flag.Bool("d", false, "debug mode displays handler output")
28
var env = flag.Bool("e", false, "pass environment to handlers")
@@ -206,7 +207,7 @@ func main() {
206
207
if p := os.Getenv("PORT"); p != "" && *port == "22" {
208
*port = p
209
}
- listener, err := net.Listen("tcp", ":"+*port)
210
+ listener, err := net.Listen("tcp", *host+":"+*port)
211
if err != nil {
212
log.Fatalln("Failed to listen for connections:", err)
213
0 commit comments