Closed mbmurray closed 5 years ago
@mathpaquette, I would suggest to implement it but also include a static property to either force it to ipv4 or keep it automatic like it is now where automatic is the default.
This is related to issue #35.
I made the suggested change and resubmitted the pull request.
guys, dont forget when you submit a PR, you need to provide some tests to back your changes... cant merge the PR as is...
I may just have to close the pull request. The class that was modified doesn't currently have any tests written for it. It is a class that directly interacts with the computer system and is pretty much un(unit)testable as written. Refactoring the code to abstract out the interaction points behind an interface seemed to be outside the scope of the initial change.
I added a few integration tests.
@mathpaquette , are you going to take a look at this? I've made all the requested updates.
Yes sure Michael I’ll take care soon!!
Get Outlook for iOShttps://aka.ms/o0ukef
From: Michael B. Murray notifications@github.com Sent: Tuesday, June 11, 2019 10:58:51 AM To: mathpaquette/IQFeed.CSharpApiClient Cc: Mathieu Paquette; Mention Subject: Re: [mathpaquette/IQFeed.CSharpApiClient] Restrict local IP address list to IPv4. (#36)
@mathpaquettehttps://github.com/mathpaquette , are you going to take a look at this? I've made all the requested updates.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/mathpaquette/IQFeed.CSharpApiClient/pull/36?email_source=notifications&email_token=ABBICN6RBB73S7KWHBVMMZLPZ64SXA5CNFSM4HG63EDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXNNLRI#issuecomment-500880837, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABBICN2EOBKXHVKGFKHFUALPZ64SXANCNFSM4HG63EDA.
@mbmurray im gonna to fix that slightly differently. integration tests like this are duplicated. we just need to use once... anyway, thanks for reporting the issue!
I simply restrict the list of addresses to those in the IPv4 family.