mirror of
https://git.sr.ht/~adnano/kiln
synced 2024-10-30 01:13:08 +00:00
Update gmi dependency
This commit is contained in:
parent
e662a70990
commit
fa7c320822
2
go.mod
2
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
|
||||
|
|
10
go.sum
10
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=
|
||||
|
|
4
main.go
4
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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue