more fucking UI fixes
This commit is contained in:
parent
d259bc3a8e
commit
c82d5554d8
@ -4196,8 +4196,11 @@ func (g *Gateway) calculateWebTorrentPieceLength(fileSize int64) int64 {
|
|||||||
|
|
||||||
// getBaseURL returns the base URL for the gateway
|
// getBaseURL returns the base URL for the gateway
|
||||||
func (g *Gateway) getBaseURL() string {
|
func (g *Gateway) getBaseURL() string {
|
||||||
// TODO: This should be configurable or detected from request
|
// Use configured public URL if available, otherwise fall back to localhost
|
||||||
// For now, use localhost with the configured port
|
if g.publicURL != "" && g.publicURL != "http://localhost" {
|
||||||
|
return g.publicURL
|
||||||
|
}
|
||||||
|
// Fallback to localhost (for development)
|
||||||
return fmt.Sprintf("http://localhost:%d", g.config.Gateway.Port)
|
return fmt.Sprintf("http://localhost:%d", g.config.Gateway.Port)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user