Update deps

This commit is contained in:
Frank Denis 2020-12-01 14:46:14 +01:00
parent 9c50963f69
commit 5c1e3f0b15
19 changed files with 227 additions and 53 deletions

View file

@ -1,4 +0,0 @@
sudo: false
language: go
go:
- 1.10.2

View file

@ -4,5 +4,5 @@ go 1.15
require (
github.com/hashicorp/go-syslog v1.0.0
golang.org/x/sys v0.0.0-20201015000850-e3ed0017c211
golang.org/x/sys v0.0.0-20201130171929-760e229fe7c5
)

View file

@ -1,4 +1,4 @@
github.com/hashicorp/go-syslog v1.0.0 h1:KaodqZuhUoZereWVIYmpUgZysurB1kBLX2j0MwMrUAE=
github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4=
golang.org/x/sys v0.0.0-20201015000850-e3ed0017c211 h1:9UQO31fZ+0aKQOFldThf7BKPMJTiBfWycGh/u3UoO88=
golang.org/x/sys v0.0.0-20201015000850-e3ed0017c211/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201130171929-760e229fe7c5 h1:dMDtAap8F/+vsyXblqK90iTzYJjNix5MsXDicSYol6w=
golang.org/x/sys v0.0.0-20201130171929-760e229fe7c5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=

View file

@ -328,14 +328,18 @@ func (stamp *ServerStamp) dohString() string {
bin = append(bin, uint8(len(serverAddrStr)))
bin = append(bin, []uint8(serverAddrStr)...)
last := len(stamp.Hashes) - 1
for i, hash := range stamp.Hashes {
vlen := len(hash)
if i < last {
vlen |= 0x80
if len(stamp.Hashes) == 0 {
bin = append(bin, uint8(0))
} else {
last := len(stamp.Hashes) - 1
for i, hash := range stamp.Hashes {
vlen := len(hash)
if i < last {
vlen |= 0x80
}
bin = append(bin, uint8(vlen))
bin = append(bin, hash...)
}
bin = append(bin, uint8(vlen))
bin = append(bin, hash...)
}
bin = append(bin, uint8(len(stamp.ProviderName)))

View file

@ -1,3 +1,3 @@
module github.com/jedisct1/go-dnsstamps
go 1.14
go 1.15