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

feat: add ASN breakdown to outline-ss-server #156

Merged
merged 1 commit into from
Jun 7, 2023
Merged

Conversation

fortuna
Copy link

@fortuna fortuna commented Jun 5, 2023

This adds the final wiring to allow for ASN breakdown.

@fortuna fortuna requested a review from jyyi1 June 5, 2023 23:08
@fortuna fortuna marked this pull request as ready for review June 5, 2023 23:08
@fortuna fortuna requested a review from a team as a code owner June 5, 2023 23:08
@fortuna fortuna removed the request for review from a team June 5, 2023 23:08
Copy link
Author

@fortuna fortuna left a comment

Choose a reason for hiding this comment

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

Any thoughts?

Copy link

@jyyi1 jyyi1 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!

if asn == 0 {
return ""
}
return fmt.Sprint(asn)
Copy link

Choose a reason for hiding this comment

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

Would it be better to use strconv.Itoa here?

Copy link
Author

Choose a reason for hiding this comment

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

I don't think it matters much. Sprint takes any number without needing to cast.

@fortuna fortuna merged commit 337f866 into master Jun 7, 2023
@fortuna fortuna deleted the fortuna-asn branch June 7, 2023 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants