mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-24 01:08:31 +02:00
improved homepage support, memory leak partial fix
This commit is contained in:
@@ -74,7 +74,7 @@ func (rt *route) Type() RouteType {
|
||||
}
|
||||
|
||||
func (rt *route) URL() *url.URL {
|
||||
url, _ := url.Parse(fmt.Sprintf("%s://%s", rt.entry.Scheme, rt.entry.Host))
|
||||
url, _ := url.Parse(fmt.Sprintf("%s://%s:%s", rt.entry.Scheme, rt.entry.Host, rt.entry.Port))
|
||||
return url
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user