From 3b5d5a73d31079ced184799e9c4a5f4af4cc5f8f Mon Sep 17 00:00:00 2001 From: Lars Karlitski Date: Wed, 25 Mar 2020 08:49:58 +0100 Subject: [PATCH] worker: drop default port We require passing the address from the unit file. Do the same for the socket, using host:port syntax. Overriding the port was broken before, because we unconditionally appended ":8700" to every address. --- cmd/osbuild-worker/main.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cmd/osbuild-worker/main.go b/cmd/osbuild-worker/main.go index bba06e593..aeef105dd 100644 --- a/cmd/osbuild-worker/main.go +++ b/cmd/osbuild-worker/main.go @@ -14,8 +14,6 @@ import ( "github.com/osbuild/osbuild-composer/internal/jobqueue" ) -const RemoteWorkerPort = 8700 - type connectionConfig struct { CACertFile string ClientKeyFile string @@ -88,8 +86,6 @@ func main() { if unix { client = jobqueue.NewClientUnix(address) } else { - address = fmt.Sprintf("%s:%d", address, RemoteWorkerPort) - conf, err := createTLSConfig(&connectionConfig{ CACertFile: "/etc/osbuild-composer/ca-crt.pem", ClientKeyFile: "/etc/osbuild-composer/worker-key.pem",