fix search paths for root+

This commit is contained in:
Bel LaPointe
2019-12-17 16:14:32 -07:00
parent 4a7efd4016
commit a7df97aae5
3 changed files with 53 additions and 6 deletions

View File

@@ -50,7 +50,7 @@ func Refresh() {
panic(len(bs))
}
Root = as.Get("root").GetString()
Root = strings.TrimSuffix(as.Get("root").GetString(), "/")
Port = ":" + strings.TrimPrefix(as.Get("port").GetString(), ":")
Head = string(bs[0])
Foot = string(bs[1])