Commit eb10488c authored by Sonja Happ's avatar Sonja Happ
Browse files

check if AMQP host is set before attempting to connect

parent a37608c6
...@@ -208,11 +208,13 @@ func main() { ...@@ -208,11 +208,13 @@ func main() {
panic(err) panic(err)
} }
// create amqp URL based on username, password and host if amqphost != "" {
amqpurl := "amqp://" + amqpuser + ":" + amqppass + "@" + amqphost // create amqp URL based on username, password and host
err = connectAMQP(amqpurl, api) amqpurl := "amqp://" + amqpuser + ":" + amqppass + "@" + amqphost
if err != nil { err = connectAMQP(amqpurl, api)
panic(err) if err != nil {
panic(err)
}
} }
// server at port 4000 to match frontend's redirect path // server at port 4000 to match frontend's redirect path
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment