Skip to content

Commit

Permalink
Fix TLS path (#166)
Browse files Browse the repository at this point in the history
* Fix issue related to path for TLS certificate/key

Signed-off-by: Arrobo, Gabriel <[email protected]>

* Minor logging fixes

Signed-off-by: Arrobo, Gabriel <[email protected]>

* Create patch release

Signed-off-by: Arrobo, Gabriel <[email protected]>

---------

Signed-off-by: Arrobo, Gabriel <[email protected]>
  • Loading branch information
gab-arrobo authored Oct 29, 2024
1 parent 1fff2cf commit 87a8986
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5.2-dev
1.5.2
3 changes: 2 additions & 1 deletion service/init.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-FileCopyrightText: 2021 Open Networking Foundation <[email protected]>
// Copyright 2019 free5GC.org
// SPDX-FileCopyrightText: 2024 Canonical Ltd.
// SPDX-FileCopyrightText: 2024 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//

Expand Down Expand Up @@ -287,7 +288,7 @@ func (pcf *PCF) Start() {
if serverScheme == "http" {
err = server.ListenAndServe()
} else if serverScheme == "https" {
err = server.ListenAndServeTLS(util.PCF_PEM_PATH, util.PCF_KEY_PATH)
err = server.ListenAndServeTLS(self.PEM, self.Key)
}

if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions util/init_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ func InitpcfContext(context *context.PCFContext) {

context.BindingIPv4 = os.Getenv(sbi.BindingIPv4)
if context.BindingIPv4 != "" {
logger.UtilLog.Info("Parsing ServerIPv4 address from ENV Variable.")
logger.UtilLog.Infoln("parsing ServerIPv4 address from ENV Variable")
} else {
context.BindingIPv4 = sbi.BindingIPv4
if context.BindingIPv4 == "" {
logger.UtilLog.Warn("Error parsing ServerIPv4 address as string. Using the 0.0.0.0 address as default.")
logger.UtilLog.Warnln("error parsing ServerIPv4 address as string. Using the 0.0.0.0 address as default")
context.BindingIPv4 = "0.0.0.0"
}
}
Expand Down

0 comments on commit 87a8986

Please sign in to comment.