Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NH-81807] Use a default port (443) for collector address #102

Merged
merged 1 commit into from
Jun 20, 2024
Merged

Conversation

swi-jared
Copy link
Contributor

No description provided.

@swi-jared swi-jared requested a review from a team as a code owner June 18, 2024 17:12
Copy link
Contributor

@cheempz cheempz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @swi-jared!

@@ -86,7 +89,14 @@ func ToServiceKey(s string) string {

// IsValidHost verifies if the host is in a valid format
func IsValidHost(host string) bool {
// TODO
if _, _, err := net.SplitHostPort(host); err != nil {
if strings.Contains(err.Error(), "missing port in address") {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommend to check the negation so we don't have an empty scope.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what you mean by check the negation? Also, what empty scope?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, my bad. I read it wrongly.

internal/config/config.go Show resolved Hide resolved
Copy link

@jerrytfleung jerrytfleung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -86,7 +89,14 @@ func ToServiceKey(s string) string {

// IsValidHost verifies if the host is in a valid format
func IsValidHost(host string) bool {
// TODO
if _, _, err := net.SplitHostPort(host); err != nil {
if strings.Contains(err.Error(), "missing port in address") {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, my bad. I read it wrongly.

@swi-jared swi-jared merged commit d174a4e into main Jun 20, 2024
7 checks passed
@swi-jared swi-jared deleted the NH-81807 branch June 20, 2024 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants