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

Update #17

Open
wants to merge 30 commits into
base: master
Choose a base branch
from
Open

Update #17

wants to merge 30 commits into from

Conversation

DaniGTA
Copy link

@DaniGTA DaniGTA commented Jul 3, 2018

New Functions:

  • Hide SRV
  • Use Internal IP
  • IPv6
  • Custom get IP urls
  • Custom API url (i dont think that anyone will need it)
  • Zones
  • Last Update Timestamp
  • Show current changing IP
  • Force IP Change

Updates

  • .NET Framework 4.0 => 4.6 #NeedForSSLConnection with 4.0 i cant connect too APIv4
  • Cloudflare API to v.4

+ IPv6
+ Custom IP lookup URL for IPv6/IPv4
+ Update UI after IP changes
The Proxied (bool) value will not be reseted
+ Use internal ip
+ Hide SRV

- Removed crash bug with old configs
/// </summary>
public void updateRecords(JsonResponse fetchedRecords)
public List<Result> updateRecords(Get_dns_records_response fetchedRecords)
Copy link
Owner

Choose a reason for hiding this comment

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

Class names should not contain underscores, please rename to GetDnsRecordsResponse

{
//Skip over MX and CNAME records
//TODO: Dont skip them :)
if (fetchedRecords.response.recs.objs[i].type != "A")
bool NeedIp = false;
Copy link
Owner

Choose a reason for hiding this comment

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

This can be merged into a switch, with default case.
case "A": // fall through.
case: "AAAA":
NeedIp = true;
default:
NeedIp = false;

/// <summary>
/// Get the listed records from Cloudflare using their API
/// </summary>
/// <returns>JSON stream of records, null on error</returns>
public JsonResponse getCloudFlareRecords()
public Get_dns_records_response getCloudFlareRecords(string SelectedZone)
Copy link
Owner

Choose a reason for hiding this comment

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

Avoid underscores in method names, recommend GetDnsRecordsResponse

@@ -0,0 +1,280 @@
using System;
Copy link
Owner

Choose a reason for hiding this comment

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

Rename to BasicResponse.cs

@@ -0,0 +1,30 @@
namespace CloudFlareDDNS.Classes.JsonObjects.Cloudflare
Copy link
Owner

Choose a reason for hiding this comment

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

Rename to GetDnsRecordsResponse.cs

README.md Outdated

## Support Me
[![Donate Via Paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CALMNQUWLZNYL)
<br /><br />
## Requirements
####OS Support
* Client: Windows XP / Vista / 7 / 8 / 8.1
Copy link
Owner

Choose a reason for hiding this comment

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

See comment above regarding .NET support.

README.md Outdated
.NET Framework 4.0 or above is required (already installed on Windows 8 / 8.1 / 2012 / 2012R2).
https://www.microsoft.com/en-gb/download/details.aspx?id=17851
.NET Framework 4.7 or above is required (already installed on Windows 8 / 8.1 / 2012 / 2012R2).
https://www.microsoft.com/en-us/download/details.aspx?id=55170
<br /><br />
## Building
Solution is known to build with Visual Studio 2013 (Community, Pro and Ultimate tested, Express should work), no additional dependencies are needed.<br />
Copy link
Owner

Choose a reason for hiding this comment

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

See comment above regarding VS2013 support.

@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
Copy link
Owner

Choose a reason for hiding this comment

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

Not needed?

packages.config Outdated
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
Copy link
Owner

Choose a reason for hiding this comment

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

See comment above regarding native alternatives.

@@ -0,0 +1,20 @@
The MIT License (MIT)
Copy link
Owner

Choose a reason for hiding this comment

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

If this is required - I don't want it in the repository.
Please bring it in as a git submodule, or some other NuGet magic?

Fix authorization errors and two other small bugs
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.

None yet

3 participants