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
// cmd.Cancel = stop // TODO: use when we upgrade to go 1.20
174
-
// TODO: Update the functions go runtime to accept LISTEN_ADDRESS rather
175
-
// than just port in able to allow listening on other interfaces
176
-
// (keeping the default localhost only)
177
-
ifjob.Host!="127.0.0.1" {
178
-
fmt.Fprintf(os.Stderr, "Warning: the Go functions runtime currently only supports localhost '127.0.0.1'. Requested listen interface '%v' will be ignored.", job.Host)
179
-
}
174
+
180
175
// See the 1.19 [release notes](https://tip.golang.org/doc/go1.19) which state:
181
176
// A Cmd with a non-empty Dir field and nil Env now implicitly sets the PWD environment variable for the subprocess to match Dir.
182
177
// The new method Cmd.Environ reports the environment that would be used to run the command, including the implicitly set PWD variable.
183
178
// cmd.Env = append(cmd.Environ(), "PORT="+job.Port) // requires go 1.19
0 commit comments