fix serve .

This commit is contained in:
Bel LaPointe
2020-01-23 08:08:59 -07:00
parent 16335d796b
commit f53fc80f68

View File

@@ -7,6 +7,7 @@ import (
"local/args" "local/args"
"log" "log"
"os" "os"
"path/filepath"
"strings" "strings"
"time" "time"
) )
@@ -57,6 +58,7 @@ func Refresh() {
} }
Root = strings.TrimSuffix(as.Get("root").GetString(), "/") Root = strings.TrimSuffix(as.Get("root").GetString(), "/")
Root, _ = filepath.Abs(Root)
Port = ":" + strings.TrimPrefix(as.Get("port").GetString(), ":") Port = ":" + strings.TrimPrefix(as.Get("port").GetString(), ":")
Head = string(bs[0]) Head = string(bs[0])
Foot = string(bs[1]) Foot = string(bs[1])