mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
Fix open URI RIVM-20
This commit is contained in:
parent
8cace274d0
commit
6eaf4eee0c
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ func main() {
|
||||||
panic(errors.New(fmt.Sprintf("Index file %v not found", confui.IndexHtml)))
|
panic(errors.New(fmt.Sprintf("Index file %v not found", confui.IndexHtml)))
|
||||||
}
|
}
|
||||||
path_prefix := ""
|
path_prefix := ""
|
||||||
if len(indexUrl.Scheme) == 1 {
|
if indexUrl != nil && len(indexUrl.Scheme) == 1 {
|
||||||
path_prefix = "/"
|
path_prefix = "/"
|
||||||
}
|
}
|
||||||
indexUrl, err = url.ParseRequestURI("file://" + path_prefix + strings.ReplaceAll(confui.IndexHtml, "\\", "/"))
|
indexUrl, err = url.ParseRequestURI("file://" + path_prefix + strings.ReplaceAll(confui.IndexHtml, "\\", "/"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue