Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion godaddy_ddns.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $content = ConvertFrom-Json $result.content
$dnsIp = $content.data

# Get public ip address there are several websites that can do this.
$currentIp = Invoke-RestMethod http://ipinfo.io/json | Select-Object -ExpandProperty ip
$currentIp = Invoke-RestMethod https://ipinfo.io/json | Select-Object -ExpandProperty ip

if ( $currentIp -ne $dnsIp) {
$Request = @(@{ttl=3600;data=$currentIp; })
Expand Down