Skip to content

Refactor GetMyInternalIPAsync for efficiency and clarity - #268

Merged
Timthreetwelve merged 1 commit into
mainfrom
RefactorInternal
Aug 24, 2026
Merged

Timthreetwelve merged 1 commit into
mainfrom
RefactorInternal

Conversation

@Timthreetwelve

Copy link
Copy Markdown
Owner

Refactor GetMyInternalIPAsync for efficiency and clarity

  • Refactored GetMyInternalIPAsync to cache string resources and user settings at the start, improving readability and efficiency.
  • Adjusted log messages and IPInfo list additions to use cached values.
  • Replaced repeated resource and setting lookups with local variables.
  • Updated Dns.GetHostEntryAsync to explicitly use CancellationToken.None.

- Refactored GetMyInternalIPAsync to cache string resources and user settings at the start, improving readability and efficiency.
- Updated Dns.GetHostEntryAsync to explicitly use CancellationToken.None.
- Replaced repeated resource and setting lookups with local variables.
- Adjusted log messages and IPInfo list additions to use cached values.
@Timthreetwelve
Timthreetwelve merged commit ee6bc94 into main Aug 24, 2026
2 checks passed
@Timthreetwelve
Timthreetwelve deleted the RefactorInternal branch August 24, 2026 18:58
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.

1 participant