diff --git a/main.go b/main.go index 27e1c45..1004b2a 100644 --- a/main.go +++ b/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") diff --git a/templates/sgs/index.gmi b/templates/sgs/index.gmi index ed747f0..f979fb5 100644 --- a/templates/sgs/index.gmi +++ b/templates/sgs/index.gmi @@ -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ē diff --git a/text_server.go b/text_server.go index 16682bc..61f692e 100644 --- a/text_server.go +++ b/text_server.go @@ -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()) }