Skip to content
Snippets Groups Projects
Commit 85d14367 authored by Alex Ellis (VMware)'s avatar Alex Ellis (VMware)
Browse files

Make use of config value for HTTP port override


As added by previous commit with unit tests.

Signed-off-by: default avatarAlex Ellis (VMware) <alexellis2@gmail.com>
parent 70e9a83e
No related branches found
No related tags found
No related merge requests found
......@@ -268,7 +268,7 @@ func main() {
writeTimeout := config.writeTimeout
s := &http.Server{
Addr: ":8080",
Addr: fmt.Sprintf(":%d", config.port),
ReadTimeout: readTimeout,
WriteTimeout: writeTimeout,
MaxHeaderBytes: 1 << 20, // Max header of 1MB
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment