add local port

master
serr 2025-04-07 22:36:25 +03:00
parent c1901320e0
commit 174ae82d3a
2 changed files with 4 additions and 2 deletions

View File

@ -36,9 +36,9 @@ func setupRoutesAndRun(a *models.App) error {
if ok, err := tools.IsIPInUse(a.Config.ServerIP); err != nil {
return err
} else if ok {
runServer(a.Config.ServerIP, a.Config.Port, router)
runServer(a.Config.ServerIP, a.Config.ServerPort, router)
} else {
runServer(a.Config.LocalIP, a.Config.Port, router)
runServer(a.Config.LocalIP, a.Config.LocalPort, router)
}
return nil

View File

@ -10,7 +10,9 @@ type Config struct {
TemplatesPath string
TemplatesExt string
LocalIP string
LocalPort string
ServerIP string
ServerPort string
ServerDomain string
Port string
}