Skip to content

Commit

Permalink
Fix: Use the FQND for the sandbox url (#1031)
Browse files Browse the repository at this point in the history
  • Loading branch information
rapphil authored Dec 8, 2023
1 parent e901a5f commit 1dd336e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion collector/internal/telemetryapi/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func listenOnAddress() string {
if ok && envAwsLocal == "true" {
addr = ":" + defaultListenerPort
} else {
addr = "sandbox:" + defaultListenerPort
addr = "sandbox.localdomain:" + defaultListenerPort
}

return addr
Expand Down
2 changes: 1 addition & 1 deletion collector/receiver/telemetryapireceiver/receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func listenOnAddress() string {
if ok && envAwsLocal == "true" {
addr = ":" + defaultListenerPort
} else {
addr = "sandbox:" + defaultListenerPort
addr = "sandbox.localdomain:" + defaultListenerPort
}

return addr
Expand Down
2 changes: 1 addition & 1 deletion collector/receiver/telemetryapireceiver/receiver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func TestListenOnAddress(t *testing.T) {
desc: "listen on address without AWS_SAM_LOCAL env variable",
testFunc: func(t *testing.T) {
addr := listenOnAddress()
require.EqualValues(t, "sandbox:4325", addr)
require.EqualValues(t, "sandbox.localdomain:4325", addr)
},
},
{
Expand Down

0 comments on commit 1dd336e

Please sign in to comment.