From fa7c320822e1a0abb86100ad47d067538b6b4f34 Mon Sep 17 00:00:00 2001 From: adnano Date: Tue, 13 Oct 2020 21:12:47 -0400 Subject: [PATCH] Update gmi dependency --- go.mod | 2 +- go.sum | 10 ++-------- main.go | 4 ++-- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/go.mod b/go.mod index 2743845..0c61d15 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module kiln go 1.15 -require git.sr.ht/~adnano/gmi v0.0.1-alpha.1 +require git.sr.ht/~adnano/gmi v0.1.0-alpha diff --git a/go.sum b/go.sum index bc395f4..43fc0ac 100644 --- a/go.sum +++ b/go.sum @@ -1,8 +1,2 @@ -git.sr.ht/~adnano/gmi v0.0.1-alpha.1 h1:zXcPeenDDt3opygDCunf52x3IJdVFEc1V0wf8aHshzc= -git.sr.ht/~adnano/gmi v0.0.1-alpha.1/go.mod h1:4MWQDsleal4HRi/LuxxM6ymWJQikP3Gh7xZindVCHzg= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +git.sr.ht/~adnano/gmi v0.1.0-alpha h1:4TvMuN759vB1W+vI/U7aUJ3FMQB/BJb9KuQ618NedEg= +git.sr.ht/~adnano/gmi v0.1.0-alpha/go.mod h1:t/m2KtH+7lXIF7jjVN+bNvwPbE0nxHOpvlA/WZ/KeLQ= diff --git a/main.go b/main.go index 977bbbd..4181b84 100644 --- a/main.go +++ b/main.go @@ -157,8 +157,8 @@ func serve() error { if err != nil { return err } - server.Certificate = cert - server.Handler = gmi.FileServer(gmi.Dir("dst")) + server.CertificateStore.Add("localhost", cert) + server.Handle("localhost", gmi.FileServer(gmi.Dir("dst"))) return server.ListenAndServe() }