mirror of
https://codeberg.org/PLG-Development/PLG-MuDiCS
synced 2026-07-05 16:37:09 +00:00
change display ip to correct ip with port 1323
This commit is contained in:
+3
-3
@@ -23,10 +23,10 @@ func main() {
|
||||
os.Exit(1)
|
||||
return
|
||||
}
|
||||
port := "1323"
|
||||
go web.StartWebServer(VERSION, port)
|
||||
|
||||
go web.StartWebServer(VERSION)
|
||||
|
||||
err = shared.OpenBrowserWindow("https://example.com", true, true)
|
||||
err = shared.OpenBrowserWindow("http://localhost:"+port, true, true)
|
||||
if err != nil {
|
||||
slog.Error("Failed to open browser window", "error", err)
|
||||
os.Exit(1)
|
||||
|
||||
+2
-2
@@ -37,7 +37,7 @@ var supportedExtensions = map[string]bool{
|
||||
".odp": true,
|
||||
}
|
||||
|
||||
func StartWebServer(v string) {
|
||||
func StartWebServer(v string, port string) {
|
||||
version = v
|
||||
|
||||
e := echo.New()
|
||||
@@ -63,7 +63,7 @@ func StartWebServer(v string) {
|
||||
fileGroup.PATCH("/:path", openFileRoute)
|
||||
fileGroup.GET("/preview/:path", previewRoute)
|
||||
|
||||
err := e.Start(":1323")
|
||||
err := e.Start(":" + port)
|
||||
if err != nil {
|
||||
slog.Error("Failed to start server", "error", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user