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

Tweak/custom dns #1472

Merged
merged 3 commits into from
Jul 1, 2020
Merged

Tweak/custom dns #1472

merged 3 commits into from
Jul 1, 2020

Conversation

PromoFaux
Copy link
Member

By submitting this pull request, I confirm the following:

  • I have read and understood the contributors guide, as well as this entire template.
  • I have made only one major change in my proposed changes.
  • I have commented my proposed changes within the code.
  • I have tested my proposed changes, and have included unit tests where possible.
  • I am willing to help maintain this change if there are issues with it later.
  • I give this submission freely and claim no ownership.
  • It is compatible with the EUPL 1.2 license
  • I have squashed any insignificant commits. (git rebase)

What does this PR aim to accomplish?:

Addresses issues raised in this comment on discourse.

Seems that the PR that added the execution wrapped to the pihole command in the PHP introduced an issue with the error that is displayed back to the user (Despite completing successfully)

Additionally I have tweaked the logic around custom ports, a port is only added to the address is it is explicitly added by the user.

…g this logic change prevents a misleading message being displayed to the user

Signed-off-by: Adam Warner <[email protected]>
… if it is specified by the user

Signed-off-by: Adam Warner <[email protected]>
@PromoFaux PromoFaux added this to the v5.1 milestone Jun 25, 2020
@PromoFaux PromoFaux requested a review from DL6ER June 25, 2020 16:58
@pralor-bot
Copy link

This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there:

https://discourse.pi-hole.net/t/feedback-for-allow-defining-clients-by-their-mac-address-host-name-and-networking-interface/32324/145

$success .= "Updating DNS settings failed. Result:";
$success .= implode($return);
}
$success .= htmlspecialchars(end($return))."<br>";
Copy link
Member

Choose a reason for hiding this comment

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

So we always assume success now (if the checks above worked)?

Copy link
Member Author

Choose a reason for hiding this comment

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

Well... this is how it was before the pihole wrapper code was put in.

@PromoFaux PromoFaux merged commit f31048c into devel Jul 1, 2020
@PromoFaux PromoFaux deleted the tweak/custom_DNS branch July 1, 2020 08:13
@PromoFaux PromoFaux mentioned this pull request Jul 5, 2020
@pralor-bot
Copy link

This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there:

https://discourse.pi-hole.net/t/pi-hole-5-1-released/35577/1

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

Successfully merging this pull request may close these issues.

3 participants