autodetect API by length of API key

This commit is contained in:
tengel 2017-09-29 10:20:01 -05:00
parent 57e97f1821
commit 0c4aed99a2
4 changed files with 61 additions and 16 deletions

View file

@ -129,7 +129,7 @@
.\" ========================================================================
.\"
.IX Title "PETRIFIED 1"
.TH PETRIFIED 1 "2017-09-16" "petrified 2.0.0" "Petrified Manual"
.TH PETRIFIED 1 "2017-09-29" "petrified 2.0.0" "Petrified Manual"
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
@ -146,14 +146,14 @@ Usage: \fBpetrified\fR [ \fB\-c\fR \fIconfig\fR ]
flexibility and configurability while using the minimal system tools
installed with most distributions.
.PP
.Vb 2
\& Version 1.x = FreeDNS API v1
\& Version 2.x = FreeDNS API v2
.Ve
.PP
If upgrading from \s-1API\s0 v1 to v2, a manual action is required on the
FreeDNS website to generate a new \s-1API\s0 key for each domain name. See
<https://freedns.afraid.org/dynamic/v2/> for more information.
.PP
By default, petrified will use the length of the \s-1API\s0 key to automatically
choose the APIv1 or APIv2 \s-1URL\s0; this can be overridden in the configuration
file to force a specific version, as the v1 key length is variable but the
v2 key length is fixed at 24 chars.
.SH "OPTIONS"
.IX Header "OPTIONS"
.IP "\fB\-c\fR \fIconfig\fR" 4