mirror of
https://codeberg.org/PLG-Development/PLG-MuDiCS
synced 2026-07-06 00:47:09 +00:00
change display ip to correct ip with port 1323
This commit is contained in:
+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