Make listen port configurable

Signed-off-by: Sean Du <do4suki@gmail.com>
This commit is contained in:
2025-03-10 15:29:29 +08:00
parent 9dcfc90226
commit 94a822e5d1
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
package main
import (
"honoka-chan/config"
"honoka-chan/db"
"honoka-chan/router"
_ "honoka-chan/tools"
@@ -33,5 +34,5 @@ func main() {
// SIF
router.SifRouter(r)
r.Run(":80") // listen and serve on 0.0.0.0:8080 (for windows "localhost:8080")
r.Run(":" + config.Conf.Settings.ListenPort) // listen and serve on 0.0.0.0:8080 (for windows "localhost:8080")
}