mirror of
https://github.com/m1k1o/neko-rooms.git
synced 2026-11-03 07:01:35 -06:00
fix path.
This commit is contained in:
@@ -264,7 +264,7 @@ func (s *Room) GetRoomUrl(roomName string) string {
|
||||
if strings.HasPrefix(instanceUrl.Host, "*.") {
|
||||
instanceUrl.Host = roomName + "." + strings.TrimPrefix(instanceUrl.Host, "*.")
|
||||
} else {
|
||||
instanceUrl.Path = path.Join(instanceUrl.Path, s.PathPrefix, roomName, "/")
|
||||
instanceUrl.Path = path.Join(instanceUrl.Path, s.PathPrefix, roomName) + "/"
|
||||
}
|
||||
|
||||
return instanceUrl.String()
|
||||
|
||||
Reference in New Issue
Block a user