Skip to content
This repository has been archived by the owner on Sep 14, 2020. It is now read-only.

fix: BSGConnectivity hostName #320

Closed

Conversation

Jekiwijaya
Copy link

Goal

Fixing https://notify.bugsnag.com is being unresolved, since it's include the protocol, the accepted one is only hostname.
Group

https://developer.apple.com/documentation/systemconfiguration/1514904-scnetworkreachabilitycreatewithn

nodename
The node name of the desired host. This name is the same as that passed to the gethostbyname or getaddrinfo functions. The value of this parameter is copied into the new object.

Changeset

Changes

- NSString *hostName = [url absoluteString];
+ NSString *hostName = [url host];

Tests

It should be resolved
Group2

Discussion

Alternative Approaches

Outstanding Questions

Linked issues

Review

For the submitter, initial self-review:

  • Commented on code changes inline explain the reasoning behind the approach
  • Reviewed the test cases added for completeness and possible points for discussion
  • A changelog entry was added for the goal of this pull request
  • Check the scope of the changeset - is everything in the diff required for the pull request?
  • This pull request is ready for:
    • Initial review of the intended approach, not yet feature complete
    • Structural review of the classes, functions, and properties modified
    • Final review

For the pull request reviewer(s), this changeset has been reviewed for:

  • Consistency across platforms for structures or concepts added or modified
  • Consistency between the changeset and the goal stated above
  • Internal consistency with the rest of the library - is there any overlap between existing interfaces and any which have been added?
  • Usage friction - is the proposed change in usage cumbersome or complicated?
  • Performance and complexity - are there any cases of unexpected O(n^3) when iterating, recursing, flat mapping, etc?
  • Concurrency concerns - if components are accessed asynchronously, what issues will arise
  • Thoroughness of added tests and any missing edge cases
  • Idiomatic use of the language

@Jekiwijaya
Copy link
Author

@Jekiwijaya Jekiwijaya closed this Mar 11, 2019
@lightswitch05
Copy link

Thank you for fixing this. Over the past 7 days there have been 10 failed requests on my network due to this bug. Its quite annoying to see full URLs popping up in my DNS records

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants