Prefer sdns:// which is less application-tainted
This commit is contained in:
parent
d7b8217018
commit
2d7920af22
|
@ -254,4 +254,4 @@ format = 'tsv'
|
||||||
|
|
||||||
[servers]
|
[servers]
|
||||||
[servers.'scaleway-fr']
|
[servers.'scaleway-fr']
|
||||||
stamp = 'dnsc://AQMAAAAAAAAAEjIxMi40Ny4yMjguMTM2OjQ0M09FODAxOkI4NEU6QTYwNjpCRkIwOkJBQzA6Q0U0Mzo0NDVCOkIxNUU6QkE2NDpCMDJGOkEzQzQ6QUEzMTpBRTEwOjYzNkE6MDc5MDozMjREHzIuZG5zY3J5cHQtY2VydC5mci5kbnNjcnlwdC5vcmc'
|
stamp = 'sdns://AQMAAAAAAAAAEjIxMi40Ny4yMjguMTM2OjQ0M09FODAxOkI4NEU6QTYwNjpCRkIwOkJBQzA6Q0U0Mzo0NDVCOkIxNUU6QkE2NDpCMDJGOkEzQzQ6QUEzMTpBRTEwOjYzNkE6MDc5MDozMjREHzIuZG5zY3J5cHQtY2VydC5mci5kbnNjcnlwdC5vcmc'
|
||||||
|
|
|
@ -32,8 +32,8 @@ func NewServerStampFromLegacy(serverAddrStr string, serverPkStr string, provider
|
||||||
|
|
||||||
func NewServerStampFromString(stampStr string) (ServerStamp, error) {
|
func NewServerStampFromString(stampStr string) (ServerStamp, error) {
|
||||||
stamp := ServerStamp{}
|
stamp := ServerStamp{}
|
||||||
if !strings.HasPrefix(stampStr, "dnsc://") {
|
if !strings.HasPrefix(stampStr, "sdns://") && !strings.HasPrefix(stampStr, "dnsc://") {
|
||||||
return stamp, errors.New("Stamps are expected to start with dnsc://")
|
return stamp, errors.New("Stamps are expected to start with sdns://")
|
||||||
}
|
}
|
||||||
bin, err := base64.RawURLEncoding.DecodeString(stampStr[7:])
|
bin, err := base64.RawURLEncoding.DecodeString(stampStr[7:])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue