Compare commits
2 commits
3d27d24f9f
...
d59c6b9f39
Author | SHA1 | Date | |
---|---|---|---|
|
d59c6b9f39 | ||
|
7cedf4a46f |
4 changed files with 14 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -21,3 +21,4 @@
|
|||
# Go workspace file
|
||||
go.work
|
||||
|
||||
.idea/
|
||||
|
|
11
main.go
11
main.go
|
@ -3,6 +3,7 @@ package main
|
|||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"flag"
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
|
@ -13,6 +14,16 @@ import (
|
|||
"git.sr.ht/~adnano/go-gemini/certificate"
|
||||
)
|
||||
|
||||
var (
|
||||
fileSrvHost string
|
||||
fileSrvPort string
|
||||
)
|
||||
|
||||
func init() {
|
||||
flag.StringVar(&fileSrvHost, "fileSrvHost", "", "file push server host")
|
||||
flag.StringVar(&fileSrvPort, "fileSrvPort", "", "file push server port")
|
||||
}
|
||||
|
||||
func main() {
|
||||
certificates := &certificate.Store{}
|
||||
certificates.Register("localhost")
|
||||
|
|
|
@ -24,3 +24,4 @@ Pagrindėnės temas paskėrstītas par kateguorėjės. Kuožnos fails gal turie
|
|||
|
||||
{{last_posts}}
|
||||
|
||||
=> /x vėsė straipsnē
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
)
|
||||
|
||||
func GetSummery() string {
|
||||
conn, err := net.Dial("tcp", "127.0.0.1:8001")
|
||||
conn, err := net.Dial("tcp", "127.0.0.1:8301")
|
||||
if err != nil {
|
||||
panic(err.Error())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue