Skip to content

Commit

Permalink
FIX: enable DNS proxy for siasky
Browse files Browse the repository at this point in the history
  • Loading branch information
paicha committed Jul 25, 2022
1 parent fb152d3 commit 24301a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,18 @@ func (d *DNSData) updateDNSRecord(contentRecord dao.TableRecordsInfo) (dao.Table
if recordType == "CNAME" {
oldRecords = *d.cnameRecords
content := d.ipfsCname
proxied := new(bool)
// CNAME content for skynet
if contentRecord.Key == "skynet" {
content = d.skynetCname
*proxied = true
}
newRecord = cloudflare.DNSRecord{
Type: recordType,
Name: contentRecord.Account + d.hostNameSuffix,
Content: content,
TTL: ttl,
Proxied: proxied,
}
} else if recordType == "TXT" {
oldRecords = *d.txtRecords
Expand Down

0 comments on commit 24301a5

Please sign in to comment.