Compare commits

..

2 commits

Author SHA1 Message Date
Arnas Udovicius
d59c6b9f39 host params
All checks were successful
continuous-integration/drone/push Build is passing
2022-08-18 00:06:58 +03:00
Arnas Udovicius
7cedf4a46f ignore idea files 2022-08-18 00:06:58 +03:00
4 changed files with 14 additions and 1 deletions

1
.gitignore vendored
View file

@ -21,3 +21,4 @@
# Go workspace file
go.work
.idea/

11
main.go
View file

@ -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")

View file

@ -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ē

View file

@ -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())
}