~chrisppy/beagles

d8b2e440c4fbc1826ce138687a52362179e823ec — Chris Palmer 6 months ago f2a4c49
Update go-gemini to 1.20
3 files changed, 7 insertions(+), 6 deletions(-)

M go.mod
M go.sum
M util/util.go
M go.mod => go.mod +1 -1
@@ 5,7 5,7 @@ go 1.16
replace gitlab.com/tslocum/cview v1.5.3 => git.sr.ht/~chrisppy/cview v0.0.0-20210214173831-cf2c15f351a7

require (
	git.sr.ht/~adnano/go-gemini v0.1.19
	git.sr.ht/~adnano/go-gemini v0.1.20
	git.sr.ht/~chrisppy/go-barefeed v0.1.0
	git.sr.ht/~chrisppy/go-opml v1.0.0
	git.sr.ht/~emersion/go-scfg v0.0.0-20201019143924-142a8aa629fc

M go.sum => go.sum +2 -0
@@ 1,5 1,7 @@
git.sr.ht/~adnano/go-gemini v0.1.19 h1:afHsauRIFb12diB32KLpepvT5UKJDk80dQf2mp9/tnI=
git.sr.ht/~adnano/go-gemini v0.1.19/go.mod h1:kmWT0aLnjkuzAMouxNT6Bqv756HYHSe56HE7yoF5P7Y=
git.sr.ht/~adnano/go-gemini v0.1.20 h1:P9hLTazAApkl12PTjIpxDUdvrlAfWn4t94mGX8USrCc=
git.sr.ht/~adnano/go-gemini v0.1.20/go.mod h1:kmWT0aLnjkuzAMouxNT6Bqv756HYHSe56HE7yoF5P7Y=
git.sr.ht/~chrisppy/cview v0.0.0-20210214173831-cf2c15f351a7 h1:OKIPsl2z9OsQDm8jnQfbwJDl0GakXJLhtBnTkbT6PW0=
git.sr.ht/~chrisppy/cview v0.0.0-20210214173831-cf2c15f351a7/go.mod h1:lCEqP/zDhBihNbyiEn59LgOCk09ejefHaS7kNZ57Nmc=
git.sr.ht/~chrisppy/go-barefeed v0.1.0 h1:kyf1sJx4uGLesiXagd4sCP9C8+TPge+y/VxFTX6dI4E=

M util/util.go => util/util.go +4 -5
@@ 110,13 110,12 @@ func ParseFeed(path string, gmniPath string) (f *gofeed.Feed, err error) {
		client.TrustCertificate = func(hostname string, cert *x509.Certificate) error {
			host := tofu.NewHost(hostname, cert.Raw)

			knownHost, ok := hosts.Lookup(hostname)
			if ok {
			if knownHost, ok := hosts.Lookup(hostname); ok {
				// Check fingerprint
				if bytes.Equal(knownHost.Fingerprint, host.Fingerprint) {
					return nil
				if knownHost.Fingerprint != host.Fingerprint {
					return fmt.Errorf("fingerprint does not match")
				}
				return fmt.Errorf("fingerprint does not match")
				return nil
			}

			hosts.Add(host)